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

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