05-16-2012 06:25 AM
I'd like to use the new DateTimePicker for a project in 5.0. Reading the docs, it says:
There are two ways to display the date and time picker:
I'd like to use #2 option, but there's no getField method. Am I missing something?
05-16-2012 06:34 AM
Have a look into the SpinnerDemo, this project has got date time picker.
DateTimePicker datePickerDate = DateTimePicker.createInstance( _dateCal, "yyyy-MM-dd", null);
Calender _dateCal = datePickerDate.getDateTime();
I am working on a project which is on 5.0 and i prefered using DateField.
05-16-2012 06:47 AM
07-17-2012 09:30 AM - edited 07-17-2012 09:34 AM
You have to reinitialize the DateTimePicker before using it again. There is probably a way to reset it without re-initializing it but I don't know it. Ill take bets its the reset function that I didn't notice before I posted this.