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
Chris Walters 9Chris Walters 9 

TimeZone object as a Contact field - possible?

I see where there is a TimeZone object (under the Marketing Cloud API) and have seen a few posts where an variable of such datatype can be instantiated in Apex.

But, can a field of this datatype be added to Contact ?

TIA,

Chris
ANUTEJANUTEJ (Salesforce Developers) 
Hi Chris,

Whenever we create a new field under an object a list of predefined data types are displayed I think they are the only once that can be used as data types for the fields under the object as you said I found the below link for timezone class under apex developer guide I hope this helps and in case if this does can you please choose this as best answer so that it can be used by others in the future.

>>https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_timezone.htm

Regards,
Anutej
Chris Walters 9Chris Walters 9
Hm. Date, DateTime and Time datatypes are available for a new Contact field, why wouldn't TimeZone also be? Or perhaps adding it to Address as any point on Earth can be in one and only one timezone.
ANUTEJANUTEJ (Salesforce Developers) 
I am not completely sure of the answer but when I checked once again I found a similar implementation in the below link can you please have a look at them once:

>> https://success.salesforce.com/answers?id=9063A000000ZrZrQAK
>>https://developer.salesforce.com/forums/?id=9060G0000005gkRQAQ
Chris Walters 9Chris Walters 9
None of these were too useful. Since timezones relate to geography not people it is logical to add a field of datatype TimeZone to the Address object - it already has postalcode/city/state/country . This should be a slam-dunk.