Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask 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