In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
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