In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Format to Date

JDong
8 - Asteroid

Hi,

 

The data in my column is 

 

2Q/2012

1Q/2014

3Q/2011

4Q/2015

 

How do I translate this as 

 

01/03/2012 00:00

01/01/2014 00:00

01/07/2011 00:00

01/10/2015 00:00

 

Date can be 01 but month will be first month in that quarter.

 

Thanks

3 REPLIES 3
Aaron_Harter
11 - Bolide

Hi @JDong,

 

Try the attached Formula:

10.PNG 

Ben_H
11 - Bolide

Hi Gallup,

 

You could try the following formula -

 

todate(

right([Field1],4)+"-"+
switch(left([Field1],1),"01",
"1","01",
"2","04",
"3","07",
"4","10")+
"-01")

 

Just replace [Field1] for your column. EDIT - this is to create a new date/time formatted field.

RolandSchubert
16 - Nebula
16 - Nebula

Hi @JDong ,

 

one more formula to create a Date field:

 

DateTimeParse(Right([Field1], 4) + '-' + ToString((ToNumber(Left([Field1], 1)) - 1) * 3 + 1) + '-01', '%Y-%m-%d') 

 

Best,

 

Roland

Labels
Top Solution Authors