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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date conversion on Qlikview

Good day,

Could you pleas assist in converting date with the following format 'DDMMMYYYY' to 'YYYYMMDD.

Regards,

Mbini

Labels (1)
6 Replies
maxgro
MVP
MVP

date( date#( yourdatefield, 'DDMMMYYYY'), 'YYYYMMDD')

1.png

marcus_sommer

If it's already a date then:

date(YourDate, 'YYYYMMDD') and if not then: date(date#(YourDate, 'DDMMMYYYY'), 'YYYYMMDD')

- Marcus

MarcoWedel

Hi,

maybe helpful:

you might have to adjust your MonthNames variable to your short month names as well:

SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';

regards

Marco

Not applicable
Author

Thanks a lot Gentlemen, you saved my day

Anonymous
Not applicable
Author

You can define the format at script level in main tab...see the attachment.

If it is does not work, use date() & date#()(If Required) as suggested by Marcus

MarcoWedel

you're welcome

please close your thread by selecting a correct answer.

thanks

regards

Marco