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
writerIBsonWriterThe writer.
namestringThe name of the element.
valuelongThe number of milliseconds since the Unix epoch.