+ Start a Discussion
V100V100 

Date Issues

I am replacing the Notes and Attachments with separate visualforce page lists.

One of the elements shown on the visualforce page is the date/time created:

 

<apex:outputText value="{0,date,dd/MM/yyyy HH:mm}">,&nbsp;<apex:param value="{!FbkAtt.LastModifiedDate}" /></apex:outputText>

 This display in the visual force as: 09/06/2010 20:09.

 

However when I view in the Notes & Attachments related list is shows the correct time as: 09/06/2010 21:09.

 

I realise the difference is GMT to British Summer Time (+1) but how can i account for this in visualforce without have to change it when we revert back?

 

Best Answer chosen by Admin (Salesforce Developers) 
Anand@SAASAnand@SAAS

First you should post this in the VisualForce community. You'll probably get a faster answer there.

 

As regards to your question, any reason <apex:outputField ./> won't solve your problem? <apex:outputField> is locale aware and automatically formats the data based on the user's locale.

All Answers

Anand@SAASAnand@SAAS

First you should post this in the VisualForce community. You'll probably get a faster answer there.

 

As regards to your question, any reason <apex:outputField ./> won't solve your problem? <apex:outputField> is locale aware and automatically formats the data based on the user's locale.

This was selected as the best answer
V100V100

No need to post to the visualforce board as you got it in one.

Thanks