Table of Contents

Property AsUniversalTime

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

AsUniversalTime

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

public DateTime AsUniversalTime { get; }

Property Value

DateTime