Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Converting String Date using Formula Tool DateFormat

wilsonn
6 - Meteoroid

Hello,

 

I am working on converting a series of string values to date values. I was able to get it working using the DateTime parse, but I have a few variables that will need to be converted. It seems like Formula Tool would be ideal, but I am getting an error.

 

This is the formula I am current attempting:

DateTimeFormat([Date],"%Y-%m-%dT%H:%M:%S")

 

Here is the error:

ConvError: Formula (2): DateTimeFormat: "2023-01-01T22:02:52Z" is not a valid Date or Time

 

Thank you for any assistance you are able to provide.

1 REPLY 1
wilsonn
6 - Meteoroid

I found the solution: DateTimeParse([Date],'%Y-%m-%dT%H:%M:%S')

Labels
Top Solution Authors