Table of Contents

Constructor BsonDateTime

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

BsonDateTime(DateTime)

Initializes a new instance of the BsonDateTime class.

public BsonDateTime(DateTime value)

Parameters

value DateTime

A DateTime.

BsonDateTime(long)

Initializes a new instance of the BsonDateTime class.

public BsonDateTime(long millisecondsSinceEpoch)

Parameters

millisecondsSinceEpoch long

Milliseconds since Unix Epoch.