Start Free Trial

Alteryx Designer Desktop Discussions

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

Parse DDMonYY to date

Chirag_KRCPL
8 - Asteroid

String is in given format:

28SEP2021

How to parse it as date?

And can you please specify some reference link where I can find different date formats and their parsing methodology?

 

5 REPLIES 5
DataNath
17 - Castor
17 - Castor

@Chirag_KRCPL you can use the DateTimeParse() function with the following specifiers:

 

DataNath_0-1664530229776.png

 

The %d here represents a 1/2 digit day.

%m represents abbreviated months.

%Y signifies a 4-digit year.

 

More information on dateparse and the specifiers is available in the help documentation here: https://help.alteryx.com/20221/designer/datetime-functions

JosephSerpis
17 - Castor
17 - Castor

Hi @Chirag_KRCPL this is the reference you need. The following formula would parse your date inside a formula tool.

 

 

DateTimeParse([your field],"%d%b%Y")

 

  

Chirag_KRCPL
8 - Asteroid

I am using '%d%b%y' for date "18SEP52" but i is showing field conversion error - any idea on  this?

DataNath
17 - Castor
17 - Castor

@Chirag_KRCPL can you share your flow or at least a screenshot or something? Struggling to replicate that behaviour:

 

DataNath_0-1664532538499.png

Chirag_KRCPL
8 - Asteroid

Hi @DataNath , I was actually applying the formula to the same field ("Input Format" in your case) instead of applying it on a new "Date" field.
This was causing field conversion error. However resolved now.

Many thanks for your response!!    

Labels
Top Solution Authors