From PCSAR
			
												
			This is the documentation for the template Template:Current or past month
 Template:Current or past month/Doc:
| 
 The template {{Current or past month|MM|YYYY-MM-DD}}
returns the most recent month MM in the current or previous year.
 Returned value is of the form YYYY-MM
 
-  MM 
 -  The month to find
 -  YYYY-MM-DD 
 -  (optional) Base date from which to search backwards for month.  If not specified, uses the current date.
  
 
 
|  You type...
 |  You get...
 |  
 {{current or past month|01}} 
 | 
                  2025-01 
 
 |  
 {{current or past month|02}} 
 | 
                  2025-02 
 
 |  
 {{current or past month|03}} 
 | 
                  2025-03 
 
 |  
 {{current or past month|04}} 
 | 
                  2025-04 
 
 |  
 {{current or past month|05}} 
 | 
                  2025-05 
 
 |  
 {{current or past month|06}} 
 | 
                  2025-06 
 
 |  
 {{current or past month|07}} 
 | 
                  2025-07 
 
 |  
 {{current or past month|08}} 
 | 
                  2025-08 
 
 |  
 {{current or past month|09}} 
 | 
                  2025-09 
 
 |  
 {{current or past month|10}} 
 | 
                  2025-10 
 
 |  
 {{current or past month|11}} 
 | 
                  2025-11 
 
 |  
 {{current or past month|12}} 
 | 
                  2024-12 
 
 |  
 {{current or past month|01|2017-05-01}} 
 | 
                  2017-01 
 
 |  
 {{current or past month|02|2017-05-01}} 
 | 
                  2017-02 
 
 |  
 {{current or past month|03|2017-05-01}} 
 | 
                  2017-03 
 
 |  
 {{current or past month|04|2017-05-01}} 
 | 
                  2017-04 
 
 |  
 {{current or past month|05|2017-05-01}} 
 | 
                  2017-05 
 
 |  
 {{current or past month|06|2017-05-01}} 
 | 
                  2016-06 
 
 |  
 {{current or past month|07|2017-05-01}} 
 | 
                  2016-07 
 
 |  
 {{current or past month|08|2017-05-01}} 
 | 
                  2016-08 
 
 |  
 {{current or past month|09|2017-05-01}} 
 | 
                  2016-09 
 
 |  
 {{current or past month|10|2017-05-01}} 
 | 
                  2016-10 
 
 |  
 {{current or past month|11|2017-05-01}} 
 | 
                  2016-11 
 
 |  
 {{current or past month|12|2017-05-01}} 
 | 
                  2016-12 
 
 |   
 
 
[edit]  Support templates 
 | 
To see how this template is implemented,
edit this page and examine the portion 
between <includeonly> and </includeonly>.