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.

How do I add time to time?

RohitAakula
6 - Meteoroid

I have time (05:00:00 - TIME format) in column and want to increase time say, by 2 hours. Expected time output is 07:00:00 (Time Format).

 

When I use datetimeadd function, output is null().

 

Thanks in advance!

3 REPLIES 3
DataNath
17 - Castor
17 - Castor

Hey @RohitAakula, in this case we usually just add a dummy date to the time element so that we can use DateTimeAdd() - in the output you can leave the data type as time so only that part comes through:

 

DataNath_0-1668600290755.png

Sarreddy
9 - Comet

@RohitAakula  

if we are using DateTimeAdd needs a include date format.

 

can you try and check like this.

Sarreddy_0-1668600892572.png

 

thanks,

@sarreddy

 

DenisZ
11 - Bolide

Use the formula 

 

DateTimeAdd([Time], 2, "hours")
Labels
Top Solution Authors