03/02/2017 3:04pm

PHP | Problem -


2017-01-31 = 2016-12-31 

2017-02-28 = 2017-01-31, if February has 29 days , it will be 2017-02-28 = 2017-01-28, but 2017-02-29 = 2017-01-31
2017-03-28 / 29 / 30 and 31 = 2017-02-28, if February has 29 days, then 2017-03-28 = 2017-02-28, and 2017-03-29 / 30 / 31 = 2017-02-29
2017-04-30 = 2017-03-30 / 31
2017-05-30 / 31 = 2017-04-30
2017-06-30 = 2017-05-30 / 31
2017-07-30 / 31 = 2017-06-30
2017-08-31 = 2017-07-31
2017-09-30 = 2017-08-30 / 31
2017-10-30 / 31 = 2017-09-30
2017-11-30 = 2017-10-30 / 31
2017-12-30 / 31 = 2017-11-30