Overload | Description |
---|---|
ToDateTimeOffset(DateTime) | Converts an existing System.DateTime to a System.DateTimeOffset but normalizes the System.DateTimeKind so that comparisons of converted System.DateTime instances retain the UTC/local agnostic behavior. |
ToDateTimeOffset(DateTime,TimeSpan) |