ios - Set time (Hours, minutes) on Date object -
i'm trying let user pick date calendar , set time want reminded on date.
i date code:
func handlecellselected(view: jtapplecell?, cellstate: cellstate){ guard let validcell = view as? calendarcell else {return} if validcell.isselected{ validcell.selectedview.ishidden = false if userpickeddate { self.formatter.dateformat = "yyyy mmmm dd, hh:mm" dateselected.text = formatter.string(from: cellstate.date)
this produces output of selected date 00:00 in time. want user able change hours , minutes somehow, picker, later reminded on date , time. ideas on how change hours , minutes inside cellstate.date?
you can set datepicker's date cellstate's date, , can allow datepicker select hours , minutes. resulting date datepicker selected time on date set to. can grab date , save you'd like.
Comments
Post a Comment