Table of Contents

Enum DateOnlyDocumentFormat

Namespace
MongoDB.Bson.Serialization.Options
Assembly
MongoDB.Bson.dll

Represents the format to use with a DateOnly serializer when the representation is BsonType.Document.

public enum DateOnlyDocumentFormat
Extension Methods

Fields

DateTimeTicks = 0

The document will contain "DateTime" (BsonType.DateTime) and "Ticks" (BsonType.Int64).

YearMonthDay = 1

The document will contain "Year", "Month" and "Day" (all BsonType.Int32).