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
Amruta Kirdat
NA
103
34.2k
Date Difference
Mar 21 2011 1:07 AM
I have two dates and want difference result in months
currently i m using :
dtResult = dtExp.Subtract(dtReg);
intDays = dtResult.Days;
months = intDays / 30;
but it is giving wrong ans when there is one month difference....
can anyone help me
thx in advance
Reply
Answers (
11
)
How to encrypt and decrypt files in c# ?
How to convert C# code to VB.net Code