We help IT Professionals succeed at work.

Php or My sql calculate the time in month

teera
teera asked
on
2007-01-02 00:00:00
2007-03-03 00:00:00

Mysql database is have format like above how can  minus time 2007-03-03 00:00:00 - 2007-01-02 00:00:00 the result should Be 3  I calculate in month
Comment
Watch Question

Top Expert 2008
Commented:
use
datediff(month,date1,date2)

Explore More ContentExplore courses, solutions, and other research materials related to this topic.