date format fix for datepicker