Created
April 7, 2011 14:42
-
-
Save DavyLandman/907887 to your computer and use it in GitHub Desktop.
This just feels dirty :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add support for an alternative (second) dateFormat to the jQuery datepicker | |
(function () { | |
var oldMethod = $.datepicker.parseDate; | |
$.datepicker.parseDate = function () { | |
var dateValue = Date.parseExact(arguments[1], 'ddMMyyyy'); | |
if (dateValue) { | |
return dateValue; | |
} | |
return oldMethod.apply(this, arguments); | |
}; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment