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 after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. 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

Date Conversion

elvinh
6 - Meteoroid

Hello All,

 

I am trying to convert a date column within my workflow from a string (formatted like 4/5) to a date format that includes the day, month and year (eg:04/05/2023, 04-05-2023). What would be the best way to do this?

 

Thank you!

5 REPLIES 5
ShankerV
17 - Castor

Hi @elvinh 

 

When you say 4/5, which is month and date?

 

You can use formula tool to achieve the output.

 

elvinh
6 - Meteoroid

Hello, in this case it would be April/5 or M/d.

ShankerV
17 - Castor

Hi @elvinh 

 

One way of doing this.

 

ShankerV_0-1680623923460.png

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @elvinh 

 

It can be achieved in one simple formula like below, have explained in splits the previous thread to understand how it works. 

DateTimeFormat((datetimeparse(([Field1]+"/2023"),"%m/%d/%Y")),"%m-%d-%Y")

 

ShankerV_0-1680624100355.png

 

Many thanks

Shanker V

elvinh
6 - Meteoroid

Thank you!  This will work!

Labels
Top Solution Authors