Table of Contents

Property AsDateTime

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

AsDateTime

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

[Obsolete("Use ToUniversalTime instead.")]
public DateTime AsDateTime { get; }

Property Value

DateTime