So here's what I came up with. I don't know if it will work in all situations, but it serves my purposes quite well:
if (!Date.parse(variable)) {
alert("Not an acceptable date.");
return false;
}I hope it meets your needs as well =)
Enjoy!


0 comments:
Post a Comment