Table of Contents

Property AsLocalTime

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

AsLocalTime

Casts the BsonValue to a DateTime in the local timezone (throws an InvalidCastException if the cast is not valid).

[Obsolete("Use ToLocalTime instead.")]
public DateTime AsLocalTime { get; }

Property Value

DateTime