/ Published in: ActionScript 3
Expand |
Embed | Plain Text
// Validates 10-26-1981, 10/26/1981 and 10.26.1981 /(0[1-9]|1[012])[\/](0[1-9]|[12][0-9]|3[01])[\/](19|20)[0-9]{2}/
Comments
Subscribe to comments
You need to login to post a comment.

// Fixed to actually validates dates as such 10.26.1981 and 10-26-1981
/(0[1-9]|1[012])\/|-|.\/|-|.[0-9]{2}/i
Fixed for actual validate of date with periods and dashes
/(0[1-9]|1[012])[\/|-|\.](0[1-9]|[12][0-9]|3[01])[\/|-|\.](19|20)[0-9]{2}/i