I can add any number of months to a date:

```
strtotime("+ 1 months", '2017-01-31') // result: 2017-03-03

```

But I want to do this without going to the next month.

in this case I want the result 2017-02-28, that is, the last day of the month *before* the target month.