Table of Contents

Property AsNullableDateTime

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

AsNullableDateTime

Casts the BsonValue to a Nullable{DateTime} (throws an InvalidCastException if the cast is not valid).

[Obsolete("Use ToNullableUniversalTime instead.")]
public DateTime? AsNullableDateTime { get; }

Property Value

DateTime?