java how to calculate the difference between the two periods in February

Direct calculation, to obtain two dates and the month of the year, month difference = (second year - the first year) * 12 + second month - the first month

Reproduced in: https: //www.cnblogs.com/pretty-guy/p/3284593.html

Guess you like

Origin blog.csdn.net/weixin_34362875/article/details/94287712