Skip to content

telemark/birthdate-from-id

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status js-standard-style

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

License

MIT