mercredi 5 août 2015

Using javascript to Auto-populate Gender and Date of birth field from the ID Number field

i am working on a java project(java EE). I want to get values for the Gender and Date of Birth from the ID Number using javascript. I am a South African. Example610731 0 094 0 82). 610731 = my date of birth

0 = Individuals sex: Any number between 0-4 shows that I am a female, whereas any number between 5-9 indicates a male

094 = I was the 94th person registered at Home Affairs as a female born on 31st July 1961. If more than 999 individuals are registered on a particular birth date then the sex flag would be incremented by 1. eg: if I were the 89th male born & registered on a particular date, these middle numbers would read 5089, however, if I was the 1671st male born and registered on a particular date, the middle numbers would read 6671.

0 = I am a SA citizen (if I was a non-SA citizen this would be a 1) * Refer to notes below

82 = this is a check sum that passes the Home Affairs algorithm the make the ID number valid.

please help

Aucun commentaire:

Enregistrer un commentaire