Table of Contents

Method ToLocalTime

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

ToLocalTime(DateTime)

Converts a DateTime to local time (with special handling for MinValue and MaxValue).

public static DateTime ToLocalTime(DateTime dateTime)

Parameters

dateTime DateTime

A DateTime.

Returns

DateTime

The DateTime in local time.