+ Start a Discussion
sfpsfp 

Display the date time created date field in table format. User Time zone GMT+1.

Hi All,

In Activity Record CreatedDate in 9:16 AM. Its storing in database 9:16. In Activity default layout Created date added 1 hour and its showing.

 If our custom apex code featching all the Activities. It's displayed still 9:16.  How we will display with logged in user timezone.?

  <apex:outputText value="{0,date,dd/MM/yyyy HH:mm:ss}">
                   <apex:param value="{!t.CreatedDate}" />
   </apex:outputText>

Please help this issue.

Thanks
Sonam_SFDCSonam_SFDC
Hi,

Please go through the following:
http://salesforce.stackexchange.com/questions/8538/convert-time-from-a-different-timezone-other-than-local-to-gmt
This explains with sample code as to how to convert time in user specific time zone.