Alteryx Designer Desktop Discussions

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

Convert a date

Gaetano_B
8 - Asteroid

Hi All,

 

I have a silly question.

 

I have a date in this format: 26/05/2020 and I'd like it in the following format 26-May-20.

 

Any suggestions?

Gaetano

8 REPLIES 8
atcodedog05
22 - Nova
22 - Nova

Hi @Gaetano_B 

 

Use

DateTimeFormat(DateTimeParse([Date],"%d/%m/%Y"),"%d-%b-%y")

in a formula tool.

atcodedog05
22 - Nova
22 - Nova

Hi @Gaetano_B 

 

Here is a workflow for the task.

Output:

atcodedog05_0-1605784336890.png

Workflow:

atcodedog05_1-1605784357067.png

DateTimeFormat(DateTimeParse([Date],"%d/%m/%Y"),"%d-%b-%y")

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

Qiu
20 - Arcturus
20 - Arcturus

@Gaetano_B 
in case the coming data is string, you can do like this.

@atcodedog05 

Single quote is missing, dude.

 

1119-Gaetano_B.PNG

Qiu
20 - Arcturus
20 - Arcturus

@atcodedog05 
Already fixed while I was typing...😁

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @Gaetano_B 

 

Cheers and Happy Analyzing 😀

 

Feel free to reach out if you face any other issues 🙂

wtahir
7 - Meteor

@Qiu @atcodedog05 

 

I have a related question. I am struggling since yesterday already to deal with this problem. My dates are in verious formats like:

 

2009-1-24
05-24-2015
24-01-2015
march-2019
Feb,2020
January-16th-2020
2019-March
2019, May

 

How can I bring them all into a same format e.g (yyyy-mm-dd) ? I went through many date time related posts but never found any post dealing with this complexity. Could you guys please help me out here?

atcodedog05
22 - Nova
22 - Nova

Hi @wtahir 

 

Can you post it as a new question we will be happy to help 🙂

wtahir
7 - Meteor

thank you for replying @atcodedog05 , here is the link to my question with title "Complex date converison":

https://community.alteryx.com/t5/Alteryx-Designer-Discussions/Complex-date-converison/td-p/668701 

 

Your help is much appreciated

Labels