Click here to Skip to main content
14,668,412 members
Rate this:
Please Sign up or sign in to vote.
See more:
i have taken two date... with date data type.. how to find out difference between these two date
date in form of dd-month-yyyy please send me solution.. but i want difference in month like 2 or 3
Posted
Updated 21-Oct-13 22:44pm
v2

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 2

That;'s more complex than it sounds - the standard Timespan does not handle months or years for very good reasons.
However, if you have a look here: Working with Age: it's not the same as a TimeSpan![^] it will explain why, and give a solution class.
   
Comments
Nandakishore G N 22-Oct-13 9:02am
   
good suggestion.My 5...Original Griff

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100