formats.date implementation