function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JPSeaburyJPSeabury 

Date formating in Visual Force

Here is a segment of my Visual Force page:
 
Code:
    <b>CASE: </b> {!Case.CaseNumber} <br></br>
    <b>SWITCH:</b> {!Case.Switch__c} <br></br>
    <b>CATEGORY:</b> {!Case.Category__c} <br></br>
    <b>OPENED: </b> {!Case.CreatedDate} <br></br>

 It displays as:
 
CASE: 00014470
SWITCH: a0050000006lENSAA2
CATEGORY: Calls Failing
OPENED: Tue Jun 17 04:29:10 GMT 2008
 
 
My Question:
 
Can anyone suggest the formula / syntax I would use to have the "Opened" date / time display in the local time zone format of the User?
 
Example:
User #1 is in Boston, sees the above as:
OPENED: 6/17/2008 12:29 AM
 
User #2 is in San Francisco, sees the above as:
OPENED: 6/16/2008  9:29 AM
Or failing that, nudge me in the direction of just formating the display to a specific time zone, without doing a fancy user.timezonesidkey lookup?  How do I get it to simply display in simple MM/DD/YYYY HH:MM EDT format. 
 
yogesh.rankawatyogesh.rankawat
You can use <apex OutputField ...> </apex OutputFiled> to display date.
It automatically format the date according to current logged in user.
:smileyhappy: