Join the Inspire AMA with Joshua Burkhow, March 31-April 4. Ask, share, and connect with the Alteryx community!

Alteryx Designer Desktop Discussions

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

ERROR ON FORMULA - PARSING

kathbanc
8 - Asteroid

Hi Good Day,

 

 

I'm having this error on parsing DATETIME : 

 

FORMULA TOOL SYNTAX : datetimeparse([actual_departure_dt],'%b %d, %Y %I:%M:%S %P')

 

ERROR : Formula (2) DATETIMEPARSE: Cannot convert "2/3/2022 10:19" to a date/time with format "%b %d, %Y %I:%M:%S %P" and language "English": Invalid month: '2/3/2022 10:19' -- expected at least three letters

 

INPUT : 2/3/2022 10:19 

OUPUT : 2022-02-03 10:19:00.000

 

Thank you in advance 

5 REPLIES 5
Raj
16 - Nebula

"datetimeparse([Date], "%m/%d/%Y %H:%M")"
use this formula this will work

kathbanc
8 - Asteroid

Hi @Raj , 

 

the output is only : 2022-02-03 10:

Raj
16 - Nebula

2022-02-03 10:19:00 I get this as an output

Raj
16 - Nebula
 

Find attached

binuacs
21 - Polaris

@kathbanc The above formula will convert your input data to DateTime format YYYY-MM-DD HH:MM:SS, I think Alteryx doesn't support milli seconds format in DateTime type

 

image.png

 

 

Labels
Top Solution Authors