Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swedish personummer - 12 digit output for storage and processing #117

Open
a504aa1 opened this issue May 29, 2024 · 1 comment
Open

Swedish personummer - 12 digit output for storage and processing #117

a504aa1 opened this issue May 29, 2024 · 1 comment

Comments

@a504aa1
Copy link

a504aa1 commented May 29, 2024

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.

@koblas
Copy link
Owner

koblas commented May 30, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants