Advertisement
szymcio93

rrrr-mm-dd

Jun 16th, 2015
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. function isValidDate(subject){
  2. if (subject.match(/^(19|20)[0-9]{2})$/)[\- \/.](?:(0[1-9]|1[012])[\- \/.](0[1-9]|[12][0-9]|3[01])){
  3. return true;
  4. }else{
  5. return false;
  6. }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement