You need to sign in to do that
Don't have an account?
devendra dhaka
GMT time conversion according time zone
I have to convert GMT time to local time as per timezonekey
datetime GMTDate = datetime.now();
String strConvertedDate = GMTDate.format('MM/dd/yyyy hh:mm a',TimeZoneSidKey );
Using above approch I can create a String, But not DateTime.
If I use format or value methods, they convert back this String to GMT time.