Represents a triple of year, month and day.
It is packed in a value class wrapping an Int to prevent allocations.
A DateTime instance representing this date and time from the beginning of the day.
The day part.
The dayOfWeek part.
The dayOfWeek part as Int.
The dayOfYear part.
The month part.
The month part as Int where Month.January is 1.
The year part as Int.
The year part as Year.
Converts this date to String using format for representing it.
Converts this date to String formatting it like "2020-01-01", "2020-12-31" or "-2020-12-31" if the year is negative