Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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
18 - Pollux
18 - Pollux

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