Constructor BsonDateTime
BsonDateTime(DateTime)
Initializes a new instance of the BsonDateTime class.
public BsonDateTime(DateTime value)
Parameters
value
DateTimeA DateTime.
BsonDateTime(long)
Initializes a new instance of the BsonDateTime class.
public BsonDateTime(long millisecondsSinceEpoch)
Parameters
millisecondsSinceEpoch
longMilliseconds since Unix Epoch.