toDateOnly(epoch)
Converts an epoch to a
DateOnly
type.