Date.getParseFunction = function (fx) {
var fn = Date.Grammar.formats(fx);
return function (s) {
var r = null;
try {
r = fn.call({}, s);
} catch (e) {
return null;
}
return ((r[1].length === 0) ? r[0] : null);
};
};
Date.parseExact = function (s, fx) {
return Date.getParseFunction(fx)(s);
};
excuse me:
1.function (s, fx){} //sfx
2.fn.call({}, s);//
3.return ((r[1].length === 0) ? r[0] : null);//
I would also like to trouble you for an answer. Thank you very much