set date format for date time picker