Sri Lankan NIC number contains specific information about the individual to whom it is issued. By decoding the NIC number, you can easily determine the person’s date of birth, gender, and age. In this article, we will guide you through how to extract this information from the NIC number.
Understanding the Structure of the Sri Lanka NIC NumberA Sri Lankan NIC number typically follows this format:
XXXXXX-XXXX
Where the first six digits represent the individual’s date of birth, the next digit reveals their gender, and the last part of the number (after the dash) is a serial number that is used for registration purposes. Here's a detailed breakdown:
Date of Birth (First Six Digits):
The first six digits of the NIC represent the individual's date of birth in the format DDMMYY, i.e., the first two digits for the day, the next two for the month, and the last two for the year.
For example:
If the NIC starts with 123456, the birthdate is 12th of May, 1956.
Gender (7th Digit):
The 7th digit in the NIC number indicates the gender of the individual. The gender is encoded as follows:
For example, if the NIC number is 123456-7890, the 7th digit is 7, indicating that the person is female.
Age (Calculated from Date of Birth):
To calculate the person's age, you can use the date of birth embedded in the NIC and subtract it from the current date. The age will change every year on the individual’s birthday.
Let’s decode an example Sri Lankan NIC number: 123456-7890
First Six Digits: 123456
7th Digit: 7
Age Calculation:
To calculate someone's age from their NIC number:
Let’s assume today's date is February 19, 2025.