Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
While uploading my datafile I would like to change the dataformat of a value from general to dateformat MDY and other datavalues I would like to change from general to text. I would like to make this change in the upload script. Is this possible?
Hi @KirstenKa
Date#() is the instruction to say to Qlik whish format is the data coming
While Date() is for changing current format to desired one
so, if your data comes as 01/15/2023 and you want it as 2023/01/15 you should
Date(Date#("Regional Date", 'MM/DD/YYYY'),'YYYY/MM/DD') as FormattedDate
or, if your data comes as 01/15/2023 and you want it as 23115 you should
Date(Date#("Regional Date", 'MM/DD/YYYY'),'YMD') as FormattedDate
Hope this helps,
help users find answers! Don't forget to mark a solution that worked for you & to smash the like button!
Try this
Date#(YourDateField, 'MDY') as FormattedDate,
Thanks I can check if it works once I have my full script running. My date value (“Regional Date”) is between “” should the code then be like this? “Regional Date”(YourDateField, 'MDY') as FormattedDate
Hi @KirstenKa
Date#() is the instruction to say to Qlik whish format is the data coming
While Date() is for changing current format to desired one
so, if your data comes as 01/15/2023 and you want it as 2023/01/15 you should
Date(Date#("Regional Date", 'MM/DD/YYYY'),'YYYY/MM/DD') as FormattedDate
or, if your data comes as 01/15/2023 and you want it as 23115 you should
Date(Date#("Regional Date", 'MM/DD/YYYY'),'YMD') as FormattedDate
Hope this helps,
help users find answers! Don't forget to mark a solution that worked for you & to smash the like button!
Ok thanks, I will try once I am able to upload the file and will let you know then
This worked thanks