22 Jul '15

Anupa Manipal

A professional Software Developer in VB.NET - SQL Server and learner of PHP. Expertise in implementation of various projects including designing, development, coding and implementation of software applications.

0 Shares

VB.NET Program – Age Calculator

VB.NET Program – Age Calculator : This program will explain to calculate age by entering Date of Birth and Current date. After entering date of birth and Current date it will display birth day in the date of birth datetime picker and current day will display in the till now date time picker. In the result label it will display age in years with month and days. This is developed in VB.NET works with a very simple logic.

VB.NET Program – Age Calculator

VB.NET Program - Age Calculator

The above screenshot is the form design of the age calculator. This is designed with 3 labels, 2 date time picker and one submit button to calculate age. The date of birth, current date input and result everything works in the single form. 


Source code: In the source code four variables created. Date of birth stores in datevalue1 and current date stores in datevalue2. After the substraction its result stores in datet. 3 different formulas used to calculate year, month and days. The difference stores in diff variable.


Download Example Program: This example code of age calculator developed using Visual studio 2012 version and it works well in visual studio 2013.

download


Note: This is the mini student project you can submit it for your college seminar projects or semester projects. Coding is very simple and very easy to understand. If you still have doubts you can view this video tutorial which will explain the method to create this program:

 

About Anupa Manipal

A professional Software Developer in VB.NET - SQL Server and learner of PHP. Expertise in implementation of various projects including designing, development, coding and implementation of software applications.

Related Posts

Leave a Reply