You need to sign in to do that
Don't have an account?
sk3501.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.
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.
The link below might help you.
https://developer.salesforce.com/forums/ForumsMain?id=906F00000009518IAA
Thanks.
So try setting your Time Zone to GMT and then test it out and see if you have any discrepencies in your output Text.
http://salesforce.stackexchange.com/questions/17947/date-is-showing-a-different-date-than-the-date-time-field