Last active
August 29, 2015 14:21
-
-
Save ajace/4c385c9df7c91635e8e9 to your computer and use it in GitHub Desktop.
jquery-ui-date-validation
This file contains 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
function(dateText) { | |
try { | |
// US format | |
$.datepicker.parseDate('mm/dd/yy', dateText); | |
} catch (e) { | |
alert(e); | |
// alert user | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment