How do you add 2 hours to a timeformat in coldfusion 8

I currently am trying to use a time variable (timeformat) and add two hours to the time in the variable. How would you go about doing such a thing? I'm currently using the code in the snippet as a reference.
<cfsetTimeShown = 8:00 pm>
<cfschedule action="Update" task="#FORM.ShowingID#" operation="httprequest"
    Requesttimeout="600" >

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dateAdd("h", 2, dateVariable)

You might need to convert your TimeShown to a dateObject if it's not already, you can use createDateTime for that.
jasch2244Author Commented:
Is there a way to do it with out a date variable? I need to insert a time specifically into cfschedule, that's why I used: TimeFormat(TimeShown). Could you show me the code I"m a complete newb.
I would need to know what your TimeShow looks like what format is it paste an example ie

12:20 am

If you can tell me what it looks like, I'll post the code.
Exploring ASP.NET Core: Fundamentals

Learn to build web apps and services, IoT apps, and mobile backends by covering the fundamentals of ASP.NET Core and  exploring the core foundations for app libraries.

It might just work like this


Starttime="#TimeFormat(DateAdd("h", 2, TimeShown))#"

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jasch2244Author Commented:
Thank you that works great for the time increase for two hours. Could you give me an example of where you would increment a date value by say 2 days? I would be happy to accest as a multiple solution. Thank you, thank you!
Its the same

dateAdd("d", 2, dateVariable)

note the h changed to a d (hours to days)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.