Template:Last month/doc

Usage
Gets the last month, given a year and (notionally "current") month. For example: 2021-05 → 2021-04; 2021-01 → 2020-12.


 * the "current" year
 * the "current" month
 * how many months to go back (optional, default is 1). Can be 0 (current month) or negative (which will go forward in time).
 * the strftime format to use. Optional, default is  (i.e. YYYY-MM).