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
- writerIBsonWriter
- The writer. 
- namestring
- The name of the element. 
- valuelong
- The number of milliseconds since the Unix epoch.