Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
viveksingh
Creator III
Creator III

Date format issue

Hi Experts,
I have date format in different formats for a column in a qvd. Like below
3/30/1999 12:00:00 AM
36531
5/4/1995 12:00:00 AM

How to conver to dd/mm/yyyy
Labels (1)
1 Solution

Accepted Solutions
jyothish8807
Master II
Master II

Hi Vivek,

Try like this :

date(Alt(date#(Date,'MM/DD/YYYY hh:mm:ss TT'),
num#(Date,'#####'),
date#(Date,'DD/MM/YYYY hh:mm:ss TT'),
'NA')) as NewFiled

Best Regards,
KC

View solution in original post

3 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Like this:

Date(Alt(Date#(myDateField, 'M/D/YYYY hh:mm:ss tt'), myDateField)) as DateField,
Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jyothish8807
Master II
Master II

Hi Vivek,

Try like this :

date(Alt(date#(Date,'MM/DD/YYYY hh:mm:ss TT'),
num#(Date,'#####'),
date#(Date,'DD/MM/YYYY hh:mm:ss TT'),
'NA')) as NewFiled

Best Regards,
KC
viveksingh
Creator III
Creator III
Author

Perfect. Thanks.