Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

DateTimeFormat formula

sylvia0218
6 - Meteoroid

I'm having issue with the DateTimeFormat function. 

 

I'm trying to convert "2024-03-01" from raw data to "03/01/2024". 

 

I used the DateTimeFormat formula function but it didn't return anything. Can't tell what's going wrong with this formula. 

3 REPLIES 3
ChrisTX
16 - Nebula
16 - Nebula

DateTimeFormat is: Output to String data type

 

You selected Date for the data type for your new field.

 

Guessing you're trying to convert from data type Date to data type String?

 

Chris

sylvia0218
6 - Meteoroid

I changed the data type from Date to V-W String and it works now, thank you!

lukas_olsovsky
8 - Asteroid

Hi @sylvia0218 , you can also use ReplaceChar(date, "-", "/") and data type "String". It will work the same ;)

 

Lukas

Labels