Re: Question About Time Adding
How would i add 3 hours to the current time? i thought i could do this, but it did not work... #DateAdd('HH', '3', Now())# You're conflating the 'h' datepart parameter of DateAdd() with the 'HH' option of TimeFormat() mask parameter. Do cfset nowPlusThreeHours = DateAdd( "h" , "3" , Now() ) If you want the military time format when you display nowPlusThreeHours, you use cfoutput #TimeFormat(nowPlusThreeHours, "HH:mm:ss")# /cfoutput Pan ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Question About Time Adding
THANK YOU ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Question About Time Adding
#DateAdd('HH', '3', Now())# How about #DateAdd('H', 3, Now())# ** Information in this email is confidential and may be privileged. It is intended for the addressee only. If you have received it in error, please notify the sender immediately and delete it from your system. You should not otherwise copy it, retransmit it or use or disclose its contents to anyone. Thank you for your co-operation. ** ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists