diff options
author | Justin Wernick <justin@worthe-it.co.za> | 2023-06-11 22:47:41 +0200 |
---|---|---|
committer | Justin Wernick <justin@worthe-it.co.za> | 2023-06-11 22:47:41 +0200 |
commit | 99ec25bbb6f410ae33f09ee75ae005f5ffcdffcf (patch) | |
tree | 6323ba1ad05d7addf115dd5f6148e625b690ef59 /README.md | |
parent | be8d25968bfa511aa856759f6fbe9dfa5c8248f6 (diff) |
Update the docs which incorrectly had a 1-indexed month
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -59,7 +59,7 @@ var validIdNumber = '9001049818080'; var info = saIdParser.parse(validIdNumber); // info === { // isValid: true, -// dateOfBirth: new Date(1990, 01, 04), +// dateOfBirth: new Date(1990, 0, 4), // isMale: true, // isFemale: false, // isSouthAfricanCitizen: true @@ -95,7 +95,7 @@ var saIdParser = require('south-african-id-parser'); var validIdNumber = '9001049818080'; var dateOfBirth = saIdParser.parseDateOfBirth(validIdNumber); -// dateOfBirth === new Date(1990, 01, 04) +// dateOfBirth === new Date(1990, 0, 4) ``` The date of birth included in the ID number has a two digit year. For |