To get the selected date, call the getValue() method.