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
sk3501.3915272120779841E12sk3501.3915272120779841E12 

Date and time format

Hi,
Can anyone help me. I am getting wrong date when i am trying to take object's date and time seperately in visualforce page. My code is given below.


<apex:outputText value="{0,date,MM'/'dd'/'yyyy}">
     <apex:param value="{!call.Call_Date_Time__c}"/>                                                   
 </apex:outputText>

If the date is given 11/25/2013 then it is Printing 11/26/2013
and the same thing happening with time. I want to print date and time seperately. Please help me.
ForceComForceCom
Hi, 

The link below might help you. 
https://developer.salesforce.com/forums/ForumsMain?id=906F00000009518IAA

Thanks.
ericmonteericmonte
Did you check your timezone for your user or profile? What SFDC usually does it set the Date/Time stamp to GMT therefore you see a gap a day in your output text.


So try setting your Time Zone to GMT and then test it out and see if you have any discrepencies in your output Text.
ericmonteericmonte