I have two dates like 2020-12-31 and 2020-12-01 in string format yyyy-mm-dd while check the month it should return true.
Suppose I compare 2020-11-31 and 2020-12-31 it should return false.
If there is a difference in only month and year, it should return true.
For example today Feb 18, 2020, Suppose I choose Feb 11, 2020, it should return true, If I choose Jan 11, 2020, then it should return false.
Date difference should not be considered