Click or drag to resize

DateTimeUtils Methods

The DateTimeUtils type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAsUtc
Returns a timestamp as an UTC value.
Public methodStatic memberAsUtcWithSqlMinValue
Returns a timestamp as an UTC value and considers Microsoft SQL Server minimum values.
Public methodStatic memberParseLocal
Parses localized time string and returns UTC time
Public methodStatic memberParseUtc
Parses UTC timestamp and handles MinValue/MaxValue correctly
Public methodStatic memberRenderLocal
Renders UTC time to localized string (dependent on culture settings of current thread)
Public methodStatic memberSerializeUtc
Serializes UTC time to string.
Public methodStatic memberToLocalTime
Converts UTC time to local time and preserves MinValue/MaxValue.
Public methodStatic memberToUtcTime
Converts local time to UTC time and preserves MinValue/MaxValue
Public methodStatic memberTryParseUtc
Parses UTC timestamp and handles MinValue/MaxValue correctly
Top
See Also