Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Load date which is in different format

Hello All,

I have a date column where the values are in the format of 18-'Aug'-2017, how can I load the record?

Thanks,

Niharika

Labels (1)
1 Solution

Accepted Solutions
vishsaggi
Champion III
Champion III

Try this?

Date(Date#(Replace(Date, Chr(39), ''), 'DD-MMM-YYYY'), 'DD-MMM-YYYY')

OR

Date(Date#(Replace(Date, Chr(39), ''), 'DD-MMM-YYYY'), 'MM/DD/YYYY')

View solution in original post

4 Replies
ziadm
Specialist
Specialist

Date(Date#(DateField,'DD-MMM-YYYY'),'YYYY-MM-DD')

vishsaggi
Champion III
Champion III

Try this?

Date(Date#(Replace(Date, Chr(39), ''), 'DD-MMM-YYYY'), 'DD-MMM-YYYY')

OR

Date(Date#(Replace(Date, Chr(39), ''), 'DD-MMM-YYYY'), 'MM/DD/YYYY')

Anonymous
Not applicable
Author

Hi Ziad,

The expression will work for the values which are in 'DD-MMM-YYYY' format, by the value I have is in 'DD-'MMM'-YYYY' format(Month in single quotes).So this wont work, is there any other way?

Anonymous
Not applicable
Author

Thanks, this works