Method WriteDateTime
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
IBsonWriterThe writer.
name
stringThe name of the element.
value
longThe number of milliseconds since the Unix epoch.