summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2023-06-11 22:47:41 +0200
committerJustin Wernick <justin@worthe-it.co.za>2023-06-11 22:47:41 +0200
commit99ec25bbb6f410ae33f09ee75ae005f5ffcdffcf (patch)
tree6323ba1ad05d7addf115dd5f6148e625b690ef59 /README.md
parentbe8d25968bfa511aa856759f6fbe9dfa5c8248f6 (diff)
Update the docs which incorrectly had a 1-indexed month
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 2efa08e..fc5517a 100644
--- a/README.md
+++ b/README.md
@@ -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