Date/time conversions
Version:
The Sitecore UTC implementation handles multi-instance CMS solutions that are spread across different time zones. There are both methods and attribute settings that control how date/time values are displayed.
Methods
Methods
The following helper methods in the Sitecore.DateUtil class handle all new date/time conversion operations:
.ToUniversalTimeâ converts server date and time to universal time..ToServerTimeâ converts universal date and time to the server time.
Attributes
Attributes
You can use the following attributes to work with date/time conversions:
Sitecore.Utcâ indicates that the selected symbol is a UTC date/time withDateTime.Kindset toDateTimeKind.Utc.
Sitecore.ServerTime â indicates that the selected symbol is a date/time in the server time zone with DateTime.Kind set to DateTime.Kind.Unspecified.
If you have suggestions for improving this article, let us know!