You need to sign in to do that
Don't have an account?
Nandhini S 3
Date is displayed in user's local timezone
Hi Guys,
I have a controller class which displays a date. The date is displaying in user's local time zone. But it should display in company's time zone. How can i format it?
I have a controller class which displays a date. The date is displaying in user's local time zone. But it should display in company's time zone. How can i format it?
You can try to use TimeZone to format date time in comapny time zone, by default date time are stored in GMT in salesforce database. Checkout this article (https://medium.com/salesforce-zolo/what-every-salesforce-developer-should-know-about-dates-and-times-in-apex-d49bc0a116d4) for more details.
Thanks