set format for datepicker