Start Free Trial

Alteryx Designer Desktop Discussions

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

To get end date from start date

Polite123
8 - Asteroid

Hello team,

 

Need some suggestion regarding below issue.Please help

 

Input:

Start Date
1/1/2021
2/1/2021
3/1/2021
4/1/2021
5/1/2021
6/1/2021
7/1/2021
8/1/2021
9/1/2021
10/1/2021
11/1/2021
12/1/2021

 

Output:

 

Start DateEnd Date
1/1/20211/31/2021
2/1/20212/28/2021
3/1/20213/31/2021
4/1/20214/30/2021
5/1/20215/31/2021
6/1/20216/30/2021
7/1/20217/31/2021
8/1/20218/31/2021
9/1/20219/30/2021
10/1/202110/31/2021
11/1/202111/30/2021
12/1/202112/31/2021

 

 

Thnaks in advance.

 

 

4 REPLIES 4
PhilipMannering
16 - Nebula
16 - Nebula

Hi @Polite123 ,

 

You can use this Formula,

DateTimeFormat(DateTimeAdd(DateTimeAdd(datetimeparse([Start Date], '%m/%d/%Y'), 1, 'month'), -1, 'day'),
'%m/%d/%Y')

 

AngelosPachis
16 - Nebula

Hi @Polite123,

 

You can use the datetimetrim function after you convert your input to a format that Alteryx can understand as a date.

 

AngelosPachis_0-1614273458931.png

 

Regards,

 

Angelos

messi007
15 - Aurora
15 - Aurora

@Polite123,

 

Please see below:

 

messi007_0-1614273809970.png

Attached the workflow,

 

Regards,

Polite123
8 - Asteroid

Amazing!! Thank you both you for your prompt response.

Much appreciated.Thanks again.

Labels
Top Solution Authors