# Date, Time, Time Zone

Several fields in Dynamics CRM are date/time fields; for example the Start and End time for appointments.

You may map a date variable or a string to the Dynamics date/time field.

If your incoming data is text, you may want to convert it to a date variable first, using s2d(). This avoids any problems with the formatting of the text.

By default, times are interpreted in the time zone of the logged in user. You may override this by sending the time as a string.

If you leave it as a string, or convert to a string, it must be in one of the following formats:

String Format | Time Zone
--- | ---
"yyyy-MM-ddTHH:mm:ss" | Set by time zone of log in user
"yyyy-MM-ddTHH:mm:ss Z" | UTC
"yyyy-MM-ddTHH:mm:ss +00:00" | UTC plus or minus hours specified - may use "+" or "-"

## Valid Values

Minimum value: 1900/1/1 00:00:00

Maximum value: 9999/12/30 23:59:59

## Time Zones

Dynamics CRM stores all times in the UTC time zone.

When a time is passed from the client to the server, Dynamics CRM will converted to UTC time using the time zone of the logged in user. For example, if the user time zone is set to New York (United States EST, which is normally GMT -5), and time of 10:00 am is supplied, 15:00 (3 pm) will be stored.

To check the time zone of the user, go to:

- Workplace - Personalize Workplace - Set Personal Options - General

You may specify that times are sent in UTC time zone by default.