properly format dates for the WET datepicker