I want diff of month between two dates . Diff of month calculate such as
start_date = "2017-08-30";
end_date = "2017-09-01";
diff of month is 0
and
start_date = "2017-06-05";
end_date = "2017-08-20";
diff of month is 2
and start_date = "2017-08-15"; end_date = "2017-08-15"; diff of month is 1
I am using calender of java for dates handling. After google i can not find accurate solution for that can anyone help me how can i calculate correct month diff between two dates .