Generate pure date functions based on the DatePickerOption.