Closed TheikChan closed 6 years ago
You can do it by setting a defaultDate
on the initializer:
datePicker.show("DatePickerDialog",
doneButtonTitle: "Done",
cancelButtonTitle: "Cancel",
defaultDate: currentDate,
minimumDate: threeMonthAgo,
maximumDate: Date(),
datePickerMode: .date) { (date) in
Closing this. Please reopen if you need any help
thank you so much
i can't add default time for using DatePickerDialog as time picker
thank you