Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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

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