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.
解決済み

DateTimeFormat formula

sylvia0218
メテオロイド

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

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

lukas_olsovsky
アステロイド

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

 

Lukas

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