Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

month to year 04/2020 to end of the month

Raj_2
8 - Asteroid

Hi there,

 

I need a help on below date format conversion

 

01/2019- 31/01/2019

02/2020- 29/02/2020

05/2018-31/05/2018

 

Thanks in advance.

 

RJ

4 REPLIES 4
JosephSerpis
17 - Castor
17 - Castor

Hi @Raj_2 I mocked up a workflow that produces your output. Let me know what you think?

 

Dates_22072020.JPG

DavidP
17 - Castor
17 - Castor

You can do it with a combination of DateTime function tools

 

datetimeformat(todate(datetimeadd(datetimeadd(DateTimeParse([old date],'%m/%Y'),1,'month'),-1,'day')),'%d/%m/%Y')

 

DavidP_0-1595435934485.png

 

hi @Raj_2 

 

Please see below. Hope it helps.

 

christine_assaad_2-1595436338267.png

christine_assaad_3-1595436348053.png

 

 

 

 

Raj_2
8 - Asteroid

wondeful

Labels