public void setSelectedDate ( Calendar date ) { if ( date != null ) { dateSpinner . setSelectedDate ( date ) ; timeSpinner . setSelectedTime ( date . get ( Calendar . HOUR_OF_DAY ) , date . get ( Calendar . MINUTE ) ) ; // a custom selection has been set, don't select the default date: shouldSelectDefault = false ; } }
Sets the Spinners selection as date considering both time and day .