Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Changing String to Datetime, Columns are coming in as null

wonka1234
10 - Fireball

Hi,

 

Trying to convert these "strings" to "datetime" , however it is null after changing types.

 

 

before:

wonka1234_0-1657212883576.png

change:

wonka1234_3-1657212953500.png

 

after:

wonka1234_2-1657212903304.png

 

 

2 REPLIES 2
DataNath
17 - Castor
17 - Castor

@wonka1234 Alteryx reads dates (and date time fields) in the format YYYY-MM-DD (+ HH:MM:SS if DateTime), so you’ll need to convert these into suitable dates. You can do this with a few DateTimeTools where you just select the format of the incoming string, or you can use a Formula tool with DateTimeParse([Field], ‘%m/%d/%Y %H:%M) - assuming the bit at the end is hours:minutes - doing this 3 times in the same tool with each of the date fields replacing [Field], changing the output data type to DateTime.

binuacs
21 - Polaris

@wonka1234 one way of doing all these fields in to date format using the multi-column tool

binuacs_0-1657216171483.png

 

Labels
Top Solution Authors