Method WriteDateTime NamespaceMongoDB.Bson.IO AssemblyMongoDB.Bson.dll WriteDateTime(long) Writes a BSON DateTime to the writer. void WriteDateTime(long value) Parameters value long The number of milliseconds since the Unix epoch.