Alteryx Designer Desktop Discussions

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

Converting DD.MM.YY into a date format

tom05
6 - Meteoroid

I have a date format from a Excel input as DD.MM.YY however I am unable to tell Alteryx to change this date format to something else as it appears not to be recognised as a Date type.

 

My ultimate goal here is to convert the DD.MM.YY input to a recognized date format and then output to a new column which only tells me the MONTH YYYY.

 

For example:

 

01.06.2020 converted to June 2020

 

Thank you in advance.

4 REPLIES 4
Aaron_Harter
11 - Bolide

Hi @tom05

 

Check out the DateTimeParse & DateTimeFormat expressions in the Formula tool:

1.PNG

ArtApa
Alteryx
Alteryx

Hi @tom05 - You can also use the DateTime tool. You will need two of them, one to convert String to DateTime and one for DateTime to String. Please have a look at Example and you will quickly learn the tool:

 

ArtApa_0-1602109924612.png

 

Qiu
20 - Arcturus
20 - Arcturus

Hi, @tom05 
@ArtApa @Aaron_Harter  they have given the great answers.
Just to add, the Alteryx help is of great help, and for this case, you can check
https://help.alteryx.com/current/designer/datetime-functions

It gives the identifiers you need for almost all possible situations.

grazitti_sapna
17 - Castor

Hi @tom05 , here is the solution to the problem.

 

Use formula tool with the given formula replacing the column Field1 with your column.

 

Datetimeformat(DateTimeParse([Field1],"%d.%m.%Y"),"%B %Y")

 

One thing you should remember is that it will always give you result in V_String as this is a custom format and alteryx only support yyyy-mm-dd format as date format.

 

grazitti_sapna_0-1602132935233.png

 

Thanks.

Sapna Gupta
Labels