public/assets/backsite/third-party/inputmask/lib/extensions/inputmask.date.extensions.js
//when a dateObjValue is passed a datestring in the requested format is returned
when a dateObjValue is passed a datestring in the requested format is returned
when a dateObjValue is passed a datestring in the requested format is returned
function parse(format, dateObjValue, opts, raw) {
	var mask = "", match, fcode;
	getTokenizer(opts).lastIndex = 0;
	while ((match = getTokenizer(opts).exec(format))) {
		if (dateObjValue === undefined) {
			if ((fcode = formatcode(match))) {
				mask += "(" + fcode[0] + ")";
			} else {
				switch (match[0]) {
					case "[":
						mask += "(";
						break;
					case "]":
						mask += ")?";
						break;
					default:
						mask += escapeRegex(match[0]);
				}
			}
		} else {
			if ((fcode = formatcode(match))) {
				if (raw !== true && fcode[3]) {
					var getFn = fcode[3];
					mask += getFn.call(dateObjValue.date);
				} else if (fcode[2]) {
					mask += dateObjValue["raw" + fcode[2]];
				} else {
					mask += match[0];
				}
			} else {
				mask += match[0];
			}
		}
	}
	return mask;
}
function parse ( format , dateObjValue , opts , raw ) { var mask = "" , match , fcode ; getTokenizer ( opts ) . lastIndex = 0 ; while ( ( match = getTokenizer ( opts ) . exec ( format ) ) ) { if ( dateObjValue === undefined ) { if ( ( fcode = formatcode ( match ) ) ) { mask += "(" + fcode [ 0 ] + ")" ; } else { switch ( match [ 0 ] ) { case "[" : mask += "(" ; break ; case "]" : mask += ")?" ; break ; default : mask += escapeRegex ( match [ 0 ] ) ; } } } else { if ( ( fcode = formatcode ( match ) ) ) { if ( raw !== true && fcode [ 3 ] ) { var getFn = fcode [ 3 ] ; mask += getFn . call ( dateObjValue . date ) ; } else if ( fcode [ 2 ] ) { mask += dateObjValue [ "raw" + fcode [ 2 ] ] ; } else { mask += match [ 0 ] ; } } else { mask += match [ 0 ] ; } } } return mask ; }
when a dateObjValue is passed a datestring in the requested format is returned
when a dateObjValue is passed a datestring in the requested format is returned
//parse format to regex string