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

Insert Specific date in a column

Belletmns
8 - Asteroid

Hi All,

 

Need your help, from my raw data I need to insert a column with specific dates every month. It is divided into two cycles, every 1st - 15th of the month and 16th - 30 or 31st of the month (depending on how many days the month is).

 

Here is my raw data:

 

Belletmns_0-1600235329487.png

Here is what I want to achieve: 

 

EETypeNo.Start DateEnd date
E12105901/09/202015/09/2020
E22105901/09/202015/09/2020
E32105901/09/202015/09/2020

 

Is this possible?

 

Thanks!

 

 

1 REPLY 1
vizAlter
12 - Quasar

Hi @Belletmns — You need to create two new columns through Formula tool:

Start Date:

 

"01/"+PadLeft(ToString([No.]), 2, "0")+"/"+DateTimeFormat(DateTimeToday(),"%Y")

 

End Date:

 

"15/"+PadLeft(ToString([No.]), 2, "0")+"/"+DateTimeFormat(DateTimeToday(),"%Y")

 

 

vizAlter_1-1600239487968.png

Try attached the workflow to know more about datatypes if you want date fields in String or Date.

 

 

If it resolves your query please mark it "Solved" or "Solved" with a Like. This will help other users find the same answer/resolution.  Thank you.

Labels
Top Solution Authors