Alteryx Designer Desktop Discussions

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

How to add a column with the date

IsaacRamiro
5 - Atom

Hello,

 

I hope somebody can help me. I need to sum the days of warranty to the initial day and plug it to a master file i am doing.

 

IsaacRamiro_0-1650985544383.png

Thanks an best regards.

Ramiro.

2 REPLIES 2
Luke_C
17 - Castor
17 - Castor

Hi @IsaacRamiro 

 

You need to use a few date time formulas:

  1. Use DateTimeParse to turn the date into a proper alteryx readable date
  2. DateTimeAdd to add the days of warranty
  3. DateTimeFormat to format back to your desired format

More info on datetime formulas: DateTime Functions | Alteryx Help

 

DateTimeFormat(DateTimeAdd(datetimeparse([Date],'%d/%m/%Y'),[Days of warranty],'days'),'%d/%m/%Y')

 

Luke_C_0-1650986327308.png

 

binuacs
21 - Polaris

@IsaacRamiro another way of doing with the DateTime tool. I agree that @Luke_C  method's is the simple one but I want to show you the other methods as well. 

 

binuacs_0-1650989628098.png

 

Labels
Top Solution Authors