Hi.

This works.

<cfset plus17h = DateAdd("h", 17, now())>
<cfoutput>
    #DateFormat(plus17h, "dd/mm/yyyy")# #TimeFormat(plus17h, "HH:MM")#
</cfoutput>

Andrew

----- Original Message -----
From: Seamus Campbell <[EMAIL PROTECTED]>
Date: Wed, 22 Sep 2004 19:36:48 +1000
Subject: Tiem Format problems
To: CF-Talk <[EMAIL PROTECTED]>

hi

I'm trying to pull a date/time from a database then add 17 hours  
to it and display in

dd mmm yyyy h n

format

I thought I could add 17 hours to the date using DateAdd but this  
seems to have problems with the format
and
I can't work out how to get the time to be plus 17 hours

Or is there a way to add 17 hours to the date in the database?

Help please

Seamus

Seamus Campbell   Boldacious WebDesign
http://www.boldacious.com   ~~~~   [EMAIL PROTECTED]
ph 02 6297 4883  mob 0410 609 267________________________________
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to