Thanks! For some reason I was thinking you had to use DateAdd(). I
appreciate the help!

Warm regards,
Jordan

Bruce Sorge wrote:

> Got this from cfhub.com
>
>       Name: CreateTimeSpan()  
>       Usage: CreateTimeSpan(days, hours, minutes, seconds)  
>       Description: Use CreateTimeSpan() to create a "time" object that
> can be added to or subtracted from another "time" object.  
> <!---
> CreateTimeSpan(days, hours, minutes, seconds)
>
> Use CreateTimeSpan() to create a "time" object that can
> be added to or subtracted from another "time" object.
> --->
>
> <cfoutput>
> This number represents a time-span of 2 hours:
> #CreateTimeSpan(0,2,0,0)#<br><br>
>
> This time-span can be added to
> or subtracted from a date object<br>
>
> <cfset TimeNow = Now()>
> <cfset TheSpan = CreateTimeSpan(0,2,0,0)>
>
> #TimeFormat(TimeNow + TheSpan)#<br>
> #TimeFormat(TimeNow - TheSpan)#<br>
> </cfoutput>
>
>   ----- Original Message -----
>   From: Jordan Michaels
>   To: CF-Talk
>   Sent: Monday, July 12, 2004 3:54 PM
>   Subject: Adding to dates using CreateTimeSpan()
>
>   THe macromedia documentation for the CreateTimeSpan() function states
>   that it can be added and subtracted from other dates, however, I'm
>   unable to find any sample code that does this. Would someone mind
>   posting something that could be used as an example of this?
>
>   Thanks in advance.
>
>   --
>   Warm regards,
>   Jordan Michaels
>   Vivio Technologies
>   http://www.viviotech.net/
>   [EMAIL PROTECTED]

--
Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
[EMAIL PROTECTED]
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to