jquery-src/jquery.calendars.validation.js
function extractOtherDate(elem, source, noOther) {
			if (source.newDate && source.extraInfo) { // Already a CDate
				return [source];
			}
			var inst = $.calendarsPicker._getInst(elem);
			var thatDate = null;
			try {
				if (typeof source === 'string' && source !== 'today') {
					thatDate = inst.options.calendar.parseDate(inst.get('dateFormat'), source);
				}
			}
			catch (e) {
				// Ignore
			}
			thatDate = (thatDate ? [thatDate] : (source === 'today' ?
				[inst.options.calendar.today()] : (noOther ? [] : $(source).calendarsPicker('getDate'))));
			return thatDate;
		}
function extractOtherDate(elem, source, noOther) {
			if (source.newDate && source.extraInfo) { // Already a CDate
				return [source];
			}
			var inst = $.calendarsPicker._getInst(elem);
			var thatDate = null;
			try {
				if (typeof source === 'string' && source !== 'today') {
					thatDate = inst.options.calendar.parseDate(inst.get('dateFormat'), source);
				}
			}
			catch (e) {
				// Ignore
			}
			thatDate = (thatDate ? [thatDate] : (source === 'today' ?
				[inst.options.calendar.today()] : (noOther ? [] : $(source).calendarsPicker('getDate'))));
			return thatDate;
		}
function extractOtherDate ( elem , source , noOther ) { if ( source . newDate && source . extraInfo ) { // Already a CDate return [ source ] ; } var inst = $ . calendarsPicker . _getInst ( elem ) ; var thatDate = null ; try { if ( typeof source === 'string' && source !== 'today' ) { thatDate = inst . options . calendar . parseDate ( inst . get ( 'dateFormat' ) , source ) ; } } catch ( e ) { // Ignore } thatDate = ( thatDate ? [ thatDate ] : ( source === 'today' ? [ inst . options . calendar . today ( ) ] : ( noOther ? [ ] : $ ( source ) . calendarsPicker ( 'getDate' ) ) ) ) ; return thatDate ; }
Determine the comparison date.
@param elem {Element} The current datepicker element.
@param source {string|CDate|jQueryElement} The source of the other date.
@param noOther {boolean} <code>true</code> to not get the date from another field.
@return {CDate[]} The date for comparison.
Determine the comparison date .