Skip to content

This GitHub repo features a web form for calculating age, birthday, and gender based on NIC number. It supports the old NIC format and uses JavaScript and Date object for easy integration.

Notifications You must be signed in to change notification settings

KavidiDeSilva/findbdayfromnic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

NIC Number Reader (old format)

This is a simple web application that allows users to enter their National Identity Card (NIC) number and retrieve their date of birth, gender, and age. The form currently only supports the old format of NIC numbers, but it provides a simple and user-friendly interface for obtaining this information. The code uses JavaScript and the Date object to perform the necessary calculations, and it can easily be integrated into other web applications.

image

How to Use

  • Clone the repository to your local machine.
  • Open the index.html file in your preferred web browser.
  • Enter your 10-digit NIC number in the input field provided.
  • Click outside the input field to trigger the onblur event and retrieve your details.
  • If the NIC number is valid, the date of birth, gender, and age will be displayed in the corresponding input fields. Otherwise, an alert message will be shown prompting the user to enter a valid NIC number.

Dependencies

This application uses the following dependencies:

  • Bootstrap v5.3.0-alpha3 (CSS and JS)
  • Google Fonts (DynaPuff)

License

This application is licensed under the MIT license. Feel free to use it or modify it to your liking.

About

This GitHub repo features a web form for calculating age, birthday, and gender based on NIC number. It supports the old NIC format and uses JavaScript and Date object for easy integration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages