Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

How can I transfer the date formula?

phoebe_90
8 - Asteroid

1.The date is yy/mm/dd, how can I transfer it into mm/dd/yy?

For example: Transfer 2024/05/31      to  05/31/2024

2.Is there have a chance to use tool transfer the date  yy/mm/dd into the expression of English letters?

For example: Transfer 2024/05/31      to   May 31th,2024

2 REPLIES 2
sergejs_kutkovics
9 - Comet

Hello, @phoebe_90.

Use these expressions in formula tool:

1. 

DateTimeFormat(DateTimeParse([Date (text)],'%Y/%m/%d'), '%D')

2.

DateTimeFormat(DateTimeParse([Date (text)],'%Y/%m/%d'), '%b %d, %Y')
Megshipp
6 - Meteoroid

If this is something you would need to do for a few different workflows, you could always create a macro that would do it for you for an easier option. That's what I did at least. I just put the macro in all my workflows and it changes any field that is in DateTime format into the date format I want. I used the Multi-field formula tool with the expression : DateTimeFormat(toString([_CurrentField_]), '%m/%d/%Y') 

But that might be a bit of overkill if you only need it here or there. 

 

 
 

 

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels