Link to home
Start Free TrialLog in
Avatar of bobbyampm
bobbyampm

asked on

Date Format PST- Display date in PST

How do I make the following date display in PST instead of ET?:

#dateformat(now(),"dddd, mmmm dd, yyyy")#
The program is running on an ET server.

Avatar of TRUENEUTRAL
TRUENEUTRAL

cold fusion, eh?

there is no time part to your date up there

I assume you just want the date to roll to the next day 3 hours later

in that case use the dateadd function to subtract 3 hours from now()

#dateformat(DateAdd('HH', -3, Now()),"dddd, mmmm dd, yyyy")#


Avatar of bobbyampm

ASKER

Yes, we're working with Coldfusion. We don't want the time, just the date.

Error Occurred While Processing Request
Error Diagnostic Information

An error occurred while evaluating the expression:


#dateformat(DateAdd('HH',-1,now()),"dddd, mmmm dd, yyyy")#



Error near line 241, column 68.
--------------------------------------------------------------------------------

Parameter 1 of function DateAdd which is now "HH" must be a valid date/time part specifier


The error occurred while processing an element with a general identifier of (#dateformat(DateAdd('HH',-1,now()),"dddd, mmmm dd, yyyy")#), occupying document position (241:67) to (241:124) in the template file
 

ASKER CERTIFIED SOLUTION
Avatar of TRUENEUTRAL
TRUENEUTRAL

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Perfect! Just what I wanted. :) A+ to you!