public Calendar getSelectedDate() {
        final Object selectedItem = getSelectedItem();
        if(!(selectedItem instanceof DateItem))
            return null;
        return ((DateItem) selectedItem).getDate();
    }
public Calendar getSelectedDate ( ) { final Object selectedItem = getSelectedItem ( ) ; if ( ! ( selectedItem instanceof DateItem ) ) return null ; return ( ( DateItem ) selectedItem ) . getDate ( ) ; }
Gets the currently selected date (that the Spinner is showing)
@return The selected date as Calendar, or null if there is none.