Click or drag to resize

DateTimeUtils Class

Inheritance Hierarchy
SystemObject
  PDTec.IceNet.Sdk.UtilsDateTimeUtils

Namespace:  PDTec.IceNet.Sdk.Utils
Assembly:  PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax
C#
public static class DateTimeUtils

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
Fields
  NameDescription
Public fieldStatic memberMaxValueUtc
The maximum DateTime value as an UTC timestamp.
Public fieldStatic memberMinValueUtc
The minimum DateTime value as an UTC timestamp.
Top
See Also