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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Maciej29
Contributor III
Contributor III

Date format in script, removing unwanted characters/letters

How to convert such example using script to get 'MM/DD/YYYY' ?  Simple Date#() doesn't work. Thanks in advance for any tip.

1/8/2021 9:08 AM

 

 

1 Reply
Vegar
MVP
MVP

Your string is not a date it is a timestamp. That's why date#() won't work, but timestamp#() should .

Try this

DayName(timestamp#(YourString, 'M/D/YYYY h:mm TT'))