Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
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'))