How to calculate difference between two dates in months
Sudarshan Reddy
Greenhorn
Joined: Aug 23, 2007
Posts: 20
posted
0
Hi
can any one tell how to calculate difference between two dates in months?
With Regards<br /> <br />Sudarshan Reddy
Bauke Scholtz
Ranch Hand
Joined: Oct 08, 2006
Posts: 2458
posted
0
Depends on the DB used. Just consult the SQL documentation which comes along it. If you're using for example MySQL, you can use the DATEDIFF function for this.