a date format compiler