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.

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