In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
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.
SOLVED

Trouble with formatting a date field

WesDavies
5 - Atom

Hello,

 

I am trying to format a field that is coming in as a date field. The data looks like 

 

2025-02-21 00:00:00

 

I have tried several variations of formatting formulas, and they all result in a null result. I am able to use the datetime parse tool to convert it to text, but can't get it to give me just the mm-dd-yyyy in a formula tool.

 

Thanks in advance!

1 REPLY 1
alexnajm
19 - Altair
19 - Altair

DateTimeFormat([date field], "%m-%d-%Y") should do it if your original data is truly in a DateTime format!

 

The result though will be a string, so make sure you are creating a new column accordingly

Labels
Top Solution Authors