Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Date formatting for last day of month

tiverson
8 - Asteroid

We use a fiscal calendar that begins in October as Period 1

 

I have data (column B) that only lists the year and period and I want to create a new column (column D) that will show the ending day of the period listed in the Date column.

 

tiverson_0-1635371791183.png

 

3 REPLIES 3
chukleswk
11 - Bolide

You can use the following formula to find the last day of the month: 

datetimeadd(datetimeadd([Date] + '-01',10,'months'),-1,'days')

date format results.PNG

If you want it in the format that you have shown above then you can change the data type to a string and use the following formula:

datetimeformat(datetimeadd(datetimeadd([Date] + '-01',10,'months'),-1,'days'),'%m/%d/%Y')

date format results 2.PNG

drew9
9 - Comet

Hi @tiverson , 

 

I was able to accomplish this with a pair of lookup tables 🙂

 

Hope this is helpful!

Qiu
20 - Arcturus
20 - Arcturus

@tiverson 
A few simple tools should be able to do the work.
DateTimeTrim is a good fit here.

1028-tiverson.PNG

Labels