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

LastmodifiedDate is displaying in UK date and time on vf page


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,
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)