birthdate-from-id
v2.0.2
Published
Extract date of birth from personal ID number
Downloads
45
Readme
birthdate-from-id
Extract date of birth from personal ID number (Norway).
It supports fødselsnummer, D-nummer and VGO-nummer
Usage
const birthdateFromId = require('birthdate-from-id')
const fid = '01010750160'
const did = '41085801188'
const vid = '41085899108'
console.log(birthdateFromId(fid)) //=> 2007-01-01
console.log(birthdateFromId(did)) //=> 1958-08-01
console.log(birthdateFromId(vid)) //=> 1958-08-01