ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. 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

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
Top Solution Authors