"Fødselsnummer" is a the norwegian National Identification number.
It consists of a date of birth, an individual number and two check digits.
This project aims to provide basic utility methods for validating and extracting information about these numbers.
For definition, see Forskrift om folkeregistrering
Validate a string-representation.
boolean isValid = Fodselsnummer.isValid("12345678912");
Create an object representing a fødselsnummer.
Fodselsnummer fNr = Fodselsnummer.valueOf("12345678912");
Access properties of a fødselsnummer.
fNr.isMale(); fNr.toString(); fNr.getBirthYear4Digit(); fNr.getBirthYear2Digit(); fNr.getMonth(); fNr.getDay();