Method WithDateOnly
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
WithDateOnly(bool)
Returns a serializer that has been reconfigured with the specified dateOnly value.
Parameters
dateOnly
boolif set to
true
the values will be required to be Date's only (zero time component).
Returns
- Date
Time Serializer The reconfigured serializer.
WithDateOnly(bool, BsonType)
Returns a serializer that has been reconfigured with the specified dateOnly value and representation.
Parameters
dateOnly
boolif set to
true
the values will be required to be Date's only (zero time component).representation
BsonType The representation.
Returns
- Date
Time Serializer The reconfigured serializer.