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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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?

Labels (1)
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.