The question has no answer until more information is provided. What is a month apart? Is it 31 days, 30 days, 29 days, 28 days? Is it the day of month "number" for the later date is less than the day of month "number" for the earlier date? And other undefined conditions. All conditions must be known before a valid method can be defined and verified as valid.