You need to sign in to do that
Don't have an account?
balaji aluri 16
How to display a datetime field as per user timezone
Hi Team,
We have one requirement like, I have created one custon DateTime field(Field Name: TestDateTime__c) on User object. Now i need to display that datetime filed in visulaforce page as per the user's Timezone. And when i change the user timezone on user record, the datetime field on VF page should be displayed according to the timezone update. Can anyone please help me out with apex code for this requirement.
Quick response would be appreciated.
Thanks,
Balaji A
We have one requirement like, I have created one custon DateTime field(Field Name: TestDateTime__c) on User object. Now i need to display that datetime filed in visulaforce page as per the user's Timezone. And when i change the user timezone on user record, the datetime field on VF page should be displayed according to the timezone update. Can anyone please help me out with apex code for this requirement.
Quick response would be appreciated.
Thanks,
Balaji A
Sorry for this issue you are encountering.
May I suggest you please check with below link which might help you further.
- https://developer.salesforce.com/forums/?id=906F0000000A0x7IAC
- https://success.salesforce.com/ideaView?id=08730000000jEaLAAU
Please let us know if this helps.Regards,
Nagendra
Use :
{!$User.TestDateTime__C} in your VF page.
Please let us know if this helps.
Regards,
Faz