Would the DateAdd function not be a better choice?
dateadd(datepart, number, date)
Where datepart can be one of the following strings:
yyyy Year
q Quarter
m Month
y Day of year
d Day
w Weekday
ww Week
h Hour
n Minute
s Second
<cfset future_date = dateAdd("n", 30, now())> works for me....
John.
> -----Original Message-----
> From: David Boyd [mailto:[EMAIL PROTECTED]]
> Sent: 03 May 2002 10:58
> To: CF-Talk
> Subject: Getting Future Date + 30 Minutes...
>
>
> Hi,
>
> Can anyone help me with a Date's query I have.
>
> Im looking to evalutate a Future Date variable which will
> return the current system date + 30 minutes (or X amount of minutes).
>
> At the moment I am able to just return the current Date plus
> X amount of days i.e. the example below.
>
> <cfset Future_Date = Now()+1>
> Expires -
> #DateFormat(Future_Date, 'dddd, dd mmmm yyyy')#
> at
> #TimeFormat(Future_Date, 'HH:mm:ss')#
>
>
> Has anyone encountered and overcome a similar query?
>
> Many Thanks,
> David
>
>
>
>
> David Boyd
> Web Apps Developer
>
> Certified ColdFusion (5.0) Developer
> Biznet
> Head Office
> 133-137 Lisburn Road, Belfast
> Northern Ireland BT9 7AG
> T +44 (0) 28 9022 3224
> F +44 (0) 28 9022 3223
> E [EMAIL PROTECTED]
> W www.biznet-solutions.com
>
>
> **************************************************************
> **********
> **********************
>
> If you are not the intended recipient, or person responsible
> for delivering it to the intended recipient, you are not
> authorized to and must not disclose, copy, distribute or
> retain this message or any part of it.
>
> The opinions / views / comments on this e-mail do not
> necessarily reflect any views or policies of biznet
>
> The recipient should check this email and any attachments for
> the presence of viruses. biznet accepts no liability for any
> damage caused by any virus transmitted by this email. biznet 2002.
>
> **************************************************************
> **********
> **********************
>
>
>
>
>
>
>
>
>
>
>
>
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists