Class DateDeserializer

All Implemented Interfaces:
ModelDeserializer<String>

class DateDeserializer extends AbstractDateDeserializer<Date>
Deserializer of the Date type.

For date-only patterns (e.g., "yyyy-MM-dd"), this deserializer uses DateTimeFormatter.parseBest(CharSequence, TemporalQuery...) to detect the appropriate temporal type [ZonedDateTime, LocalDateTime, LocalDate, or YearMonth] and creates the Date object at midnight in the specified timezone. When no timezone is specified in the pattern, UTC is used as required by Jakarta JSON Binding specification section 3.5.

critical, use LocalDate (recommended) or Date.