Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Convert string YYYMMMDD to date with the same format YYYYMMDD

JosephOpenshaw
5 - Atom

This is probably a simple thing, but I could use some help.

 

I have to convert string YYYMMMDD to date with the same format YYYYMMDD.

 

Any assistance is appreciated.

3 REPLIES 3
JosephSerpis
17 - Castor
17 - Castor

Hi @JosephOpenshaw the only recognized data format in alteryx is YYYY-MM-DD. Any other format would be considered a string format in alteryx. The reason for this is that the date time functions only work with one format. I've attached a workflow which shows this.

ChrisTX
16 - Nebula
16 - Nebula

Use a formula tool with the DateTimeParse function

 

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

 

Here is a list of all functions: https://help.alteryx.com/current/Reference/Functions.htm

 

JosephOpenshaw
5 - Atom

This did the trick. Thank you @joseph and @ChrisTX !

Labels