stdnum-js icon indicating copy to clipboard operation
stdnum-js copied to clipboard

Swedish personummer - 12 digit output for storage and processing

Open a504aa1 opened this issue 1 year ago • 1 comments

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.

a504aa1 avatar May 29 '24 10:05 a504aa1

Great points. Let me see what I can get done.

koblas avatar May 30 '24 08:05 koblas