Hi John,

Try this:

<cfset time = Now()>
<cfset time = dateadd("h",-6,time) />
<cfoutput>The time= #TimeFormat(time,'h:mm tt')#</cfoutput>

Regards,

Paul Kukiel



-----Original Message-----
From: John Barrett [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 10 July 2008 11:49 AM
To: CF-Newbie
Subject: cf time

Can somebody tell me how to convert different times using timeFormat?
My server is in New Jersey, but I would like to use hawaii time. I found out
that New Jersey is 6 hours ahead of me.

I tried:
<cfset time = Now()-6>
<cfoutput>The time= #TimeFormat(time,'h:mm tt')#</cfoutput>

No no luck. Is there a trick to this? I look in the docs, but I could not
find a solution.

Thanks for any help:)
John 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3802
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to