Method ToLocalTime
ToLocalTime(DateTime)
Converts a DateTime to local time (with special handling for MinValue and MaxValue).
public static DateTime ToLocalTime(DateTime dateTime)
Parameters
dateTime
DateTimeA DateTime.
Returns
- DateTime
The DateTime in local time.