DateDecodingStrategy
public enum DateDecodingStrategyEnum representing the various strategies for decoding Dates from BSON.
As per the BSON specification, the default strategy is to decode Dates from BSON datetime objects.
See also
bsonspec.org- 
                  
                  Decode Dates stored as BSON datetimes (default).DeclarationSwift case bsonDateTime
- 
                  
                  Decode Dates stored as numbers of seconds since January 1, 1970.DeclarationSwift case millisecondsSince1970
- 
                  
                  Decode Dates stored as numbers of milliseconds since January 1, 1970.DeclarationSwift case secondsSince1970
- 
                  
                  Decode Dates by deferring to their default decoding implementation.DeclarationSwift case deferredToDate
- 
                  
                  Decode Dates stored as ISO8601 formatted strings.DeclarationSwift case iso8601
- 
                  
                  Decode Dates stored as strings parsable by the given formatter.DeclarationSwift case formatted(DateFormatter)
- 
                  
                  Decode Dates using the provided closure.DeclarationSwift case custom((_ decoder: Decoder) throws -> Date)
 View on GitHub
            View on GitHub
           Install in Dash
            Install in Dash
           DateDecodingStrategy Enumeration Reference
      DateDecodingStrategy Enumeration Reference