TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Vijay
NA
150
90.5k
Calculate age In C#
Aug 13 2013 3:47 AM
Please can you help me in console application.
How to calculate age from DOB
class Personal{
public DateTime DateOfBirth { get; set; }
public string Age { get; set; }
}
Personal per=new Personal();
Console.WriteLine("Enter the Date Of Birth :",per.DateOfBirth);
per.DateOfBirth = DateTime.Parse(Console.ReadLine());
public string
GetAge
(DateTime DateOfBirth)
{
}
How can i write for function to calculate age from DOB and display
Console.WriteLine("The DOB is" +DateOfBirth);
Console.WriteLine("the Age is ...." +Age);
DOB is
04/02/1994
i want display age is
19 years, 6 months, and 9 days
Thanks.
Reply
Answers (
11
)
How to pass ID from one page into another page in c#?
how can i join two names