The first step should have been to define what "previous month of a given date" means, since the previous month might not have a 1-1 corresponding date.
Once that term is defined, then you create unit tests, such as previous date for March 30.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The first step should have been to define what "previous month of a given date" means, since the previous month might not have a 1-1 corresponding date.
Once that term is defined, then you create unit tests, such as previous date for March 30.