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

how to convert time from GMT time zone to local time zone?
Hi,
how to convert time from gmt to local time zone?for ex:lastmodifieddate displays in GMT time zone if i want to display in local time zone how i will display?can anybody help me?
Thanks,
Isha
What do you mean by local time zone?
If your account time zone is set as your local time zone then the last modified date will be displayed as local time zone.
You will get that in Personal Information.
If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.
Thanks
All Answers
What do you mean by local time zone?
If your account time zone is set as your local time zone then the last modified date will be displayed as local time zone.
You will get that in Personal Information.
If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.
Thanks
Hi,
Try this:
String timeZone = UserInfo.getTimeZone().getID();
Datetime dateGMT=System.now();// here you can user your dates e.g. createddate
Datetime d1=Datetime.valueOf(dateGMT);
string s1=d1.format();
System.debug('@@@@@@@@@@@'+s1);
if this is your solution please mark it as solved.