stdnum-js
stdnum-js copied to clipboard
Swedish personummer - 12 digit output for storage and processing
It is recommended to store and process personnummer in 12 digit form (YYYYMMDDBBBC) to avoid ambiguity, since the 10 digit form with +/- depends on date of entry. Currently personnummer.ts accepts both forms, but can only output the 10 digit form, through format(). It would be nice to also be able to output the 12 digit form, for storage and processing.
Great points. Let me see what I can get done.