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: 
iswarya
Partner - Creator
Partner - Creator

Date conversion in script

convert this date 5-17-2019 12:00:00 AM to dd-mm-yyyy  format

4 Replies
Edvin
Creator
Creator

Try this:
date#(FieldName,'DD-MM-YYYY')

AjithramT
Contributor II
Contributor II

hi,

try like this

date(date#('5-17-2019 12:00:00','MM-DD-YYYY hh:mm:ss'),'DD-MM-YYYY')

iswarya
Partner - Creator
Partner - Creator
Author

But i want to convert all the dates in my StartDate field. It's not working

hamzabob1
Partner - Contributor III
Partner - Contributor III

Try this

Date(trim(DateField),'DD/MM/YYYY') as Date.