Datepicker not using expected format