Announcement | We'll be doing maintenance between 2-3 hours, which may impact your experience. Thanks for your patience as we work on improving the community!
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

Converting String Date using Formula Tool DateFormat

wilsonn
メテオロイド

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件の返信1
wilsonn
メテオロイド

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

ラベル
トップのソリューション投稿者