You need to sign in to do that
Don't have an account?

time zone - convert to EDT
Hello. In a Trigger, I want to take a datetime field and convert it to Eastern Daylight Time (always EDT - no matter what the time zone of the current user is). I've tried using the format() method and passing the time zone that i want, but it always converts to GMT. Any ideas?
Thanks
Chris
Thanks
Chris
Hi Chris,
I am having a similar problem, was just wondering if you found a solution and would like to share with me.
Regards
Sam
Try passing 'GMT-05:00' as the second parameter into format().
This won't take into account daylight savings time though.