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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -