function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MattMet86MattMet86 

Convert record CreatedDate to local time zone for datetime field

The following code works but I am getting the value as GMT (i think) instead of the local time zone. 

TM.Last_Call_Center_Contact__c = T.CreatedDate;

How do I get the CreatedDate in my locale? Is there a ".locale()" or something you can add to the end?