Sunday, March 6, 2011
Jquery Regular Expression validation
function isValidDate(dateString)
{
var regEx = /^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{4}$/; //regular expression
if (regEx.test(dateString))
{
return true;
}
else
{
return false;
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment