Date of Birth
Date of Birth is an available predefined policy in itself, but is also an identifier for several other policies (e.g. UK PII, US PII). A regular expression is used to identify a potential Date of Birth.
Keyphrase List:
- dob
- date of birth
- birth date
- birthdate
By using a combination of a regular expression and Java 8's built in Date class, validation is
performed that ensures that the potential date of birth is in one of 20 standard date formats. Additionally, all potential dates must fall between 01/01/1890 and present day.
List of allowable date formats:
- MM/dd/yy
- M/d/yy
- MM-dd-yy
- M-d-yy
- dd/MM/yy
- d/m/yy
- dd-MM-yy
- d-M-yy
- MM/dd/yyyy
- M/d/yyyy
- MM-dd-yyyy
- M-d-yyyy
- dd/MM/yyyy
- d/M/yyyy
- dd-MM-yyyy
- d-M-yyyy
- yyyy-MM-dd
- yyyy-M-d
- yyyy/MM/dd
- yyyy/M/d
Proximity value: 100 terms
Updated almost 6 years ago