+ Start a Discussion
ArunaAruna 

LastmodifiedDate is displaying in UK date and time on vf page

Hello,

on vf page When I am displaying user full name and LastModifiedDate field. The LastmodifiedDate filed is displaying UK date and time.

User-added image the above date/ timr should be 2017-08-11 7:57:44

I did  used LastModifiedDate .format('YYYY-MM-DD hh:mm:ss','EST') 
can anyone please help how can display lastmodifieddate from UK time zone  to USA time zone

Thank you,
Aruna.
Ajay K DubediAjay K Dubedi
Hi Aruna,
CreatedDate and LastModifedDate are stored in GMT, 
So you'll need to amend your formula +/- GMT accroringly.

Your amended formula would be something like this:

CreatedDate - ( NN_Hours * 0.04167)