Skip to content

Instantly share code, notes, and snippets.

@ajace
Last active August 29, 2015 14:21
Show Gist options
  • Save ajace/4c385c9df7c91635e8e9 to your computer and use it in GitHub Desktop.
Save ajace/4c385c9df7c91635e8e9 to your computer and use it in GitHub Desktop.
jquery-ui-date-validation
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