00:01
Hello student here asp .net we have to use and create we have to create an age calculator which can determine an age according to a given date of birth.
00:10
So date of the birth is taken from the user.
00:12
The calculated age will be displayed in year, month, week, days, hours, minutes and second.
00:17
How old are you in years, months, weeks or days or minutes or second.
00:22
The only input parameter is the birth date and then the user will know his age in these days parameters which are given to us.
00:29
So for this i have written here is asp .net program and it will calculate our age in year, month, week, days, hours, minutes and second.
00:39
So here c sharp code i have written public partial class age calculator i have taken.
00:44
So here protective void page load i have taken.
00:47
So date time birth date convert dot to date time text birth date dot text calculate the age in years.
00:53
So here i have taken age in years variable which is of the integer type and date of birth is taken as a date time birth date in the variable date time is the class.
01:05
So calculate the age in the months calculate the age in the years for this date time.
01:10
Now here the current year from the current year the birth year is subtracted for to calculate the month.
01:16
So from the date time class now dot month we are subtracting the birth date dot month...