changing date format for datepicker