Method ToUniversalTime
ToUniversalTime(DateTime)
Converts a DateTime to UTC (with special handling for MinValue and MaxValue).
Parameters
dateTime
DateTime A DateTime.
Returns
- Date
Time The DateTime in UTC.
Converts a DateTime to UTC (with special handling for MinValue and MaxValue).
dateTime
DateA DateTime.
The DateTime in UTC.