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.
#dateformat(now(),"dddd, mmmm dd, yyyy")#
The program is running on an ET server.
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
Error Occurred While Processing Request
Error Diagnostic Information
An error occurred while evaluating the expression:
#dateformat(DateAdd('HH',-
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',
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect! Just what I wanted. :) A+ to you!
:-)
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")#