Table of Contents

Method WriteDateTime

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

WriteDateTime(IBsonWriter, string, long)

Writes a BSON DateTime element to the writer.

public static void WriteDateTime(this IBsonWriter writer, string name, long value)

Parameters

writer IBsonWriter

The writer.

name string

The name of the element.

value long

The number of milliseconds since the Unix epoch.