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: 
ahilgeman
Contributor
Contributor

Convert File Name (-01.22.22) to a date in QlikScript

I need to extract the filename (TEST1 Update morning-02.08.2022) to '02/08/2022' in the script. How do I do that? So far I have this: (right(FileName(),10)) but it returns 02.08.2022, not a date. 

Labels (1)
1 Reply
maxgro
MVP
MVP

try with

= DATE(DATE#(RIGHT('TEST1 Update morning-02.08.2022', 10), 'DD.MM.YYYY'))

Some help on interpretation and formatting of date fields

https://community.qlik.com/t5/QlikView-Documents/Primer-for-QlikView-Date-fields/ta-p/1478024?attach...