Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Convert numeric fields to date

Goodmorning,

I have some problems converting numeric fields that contains dates (For example : 20090130) within the Loading script. I want to convert this to a valid date field, like 'YYYY-MM-DD'.

Any suggestions how to solve this easily?

3 Replies
Not applicable
Author

You can try date('FieldName','YYYY-MM-DD') as FieldName

or date(date#('FieldName','YYYYMMDD'),'YYYY-MM-DD') will work if the first part does not.

Kind Regards,

Footsie

Not applicable
Author

Hi,

you can try:

date(date#([YOUR_DATE], 'YYYYMMDD'), 'YYYY-MM-DD')


Regards.

€: Too slow Stick out tongue

Not applicable
Author

Thanks, this worked!!

Best regards.