Click here to Skip to main content
15,881,600 members
Please Sign up or sign in to vote.
1.00/5 (1 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

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.
 
Share this answer
 
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900