Hi Support,
I have a question. I f I want to know the month difference between given 2 days.
For example, the difference between any date in Jan 2010 and any date in May 2010, I should get the result 4. Thanks.
|
Try month(date1)-month(date2) or TIMESTAMPDIFF(DAY, timestamp1, timpestamp2) at Date/Time Functions
|