jasch2244
asked on
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"
Startdate="#DateFormat(DateShown,"mm/dd/yyyy")#"
Starttime="#TimeFormat(TimeShown)#"
URL=""
interval="300"
Requesttimeout="600" >
ASKER
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
14:50
12:20 am
If you can tell me what it looks like, I'll post the code.
14:50
12:20 am
If you can tell me what it looks like, I'll post the code.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You might need to convert your TimeShown to a dateObject if it's not already, you can use createDateTime for that.