+1
Answered

Setting the non-current time to a datepicker object

sstava 11 years ago updated by icahill (Administrator) 11 years ago 1
I have been avoiding asking this question because it seems like it should be pretty straightforward and I try to limit my "dumb" questions :)

Seeing as I haven't figured it out, I am giving in and I'm going to ask:

What is the syntax for assigning a time to a datepicker object?

I need to edit an existing timeslot (time only, no date) that is defined in my app. I want to initialize my datepicker object in the "edit timeslot" screen to be the existing timeslot's time (not the current time).
It is currently not possible to reassign a datepicker to display anything other than the current time and date when instantiated.

This object can capture the currently displaying date for use elsewhere in the app, but you will not be able to create a new datepicker with a different date on launch.

I do have a feature request in to enhance native pickers, so I will add this ticket as a note.