DateTimeUtils Methods |
The DateTimeUtils type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | AsUtc |
Returns a timestamp as an UTC value.
|
![]() ![]() | AsUtcWithSqlMinValue |
Returns a timestamp as an UTC value and considers Microsoft SQL Server minimum values.
|
![]() ![]() | ParseLocal |
Parses localized time string and returns UTC time
|
![]() ![]() | ParseUtc |
Parses UTC timestamp and handles MinValue/MaxValue correctly
|
![]() ![]() | RenderLocal |
Renders UTC time to localized string (dependent on culture settings
of current thread)
|
![]() ![]() | SerializeUtc |
Serializes UTC time to string.
|
![]() ![]() | ToLocalTime |
Converts UTC time to local time and preserves MinValue/MaxValue.
|
![]() ![]() | ToUtcTime |
Converts local time to UTC time and preserves MinValue/MaxValue
|
![]() ![]() | TryParseUtc |
Parses UTC timestamp and handles MinValue/MaxValue correctly
|