Change def of select_date so that all tests now pass with date-picker.