Validate Swedish Personal Identity Numbers

A Swedish personal identity number can be written in a lot of different ways. It normally takes one of the standard forms (YYMMDD-BBBC, YYMMDD+BBBC or YYYYMMDDBBBC) but can also include variations with whitespaces etc. Use the form below to parse a value and find out data that be extracted form the number such as date of birth and gender.