Table of Contents

Method ReadDateTime

Namespace
MongoDB.Bson.IO
Assembly
MongoDB.Bson.dll

ReadDateTime(IBsonReader, string)

Reads a BSON DateTime element from the reader.

public static long ReadDateTime(this IBsonReader reader, string name)

Parameters

reader IBsonReader

The reader.

name string

The name of the element.

Returns

long

The number of milliseconds since the Unix epoch.