21:
52:
88:
displays the number of years (or months if less than 1 year) between a specified year/month date and the current year/month. It will also work correctly when only the year is given. Optionally, a second year/month date can be specified to be used instead of the current year/month.
419:
404:
392:
36:
431:
388:
32:
170:
The following examples use
September 2024 as the current month and year. If that is not correct, click the Purge link at the top of this documentation (or
40:
414:
68:
399:
64:
447:
374:
98:, to be used when the specified date does not include the day of the month. The formatting of the output was designed to be similar to
76:
427:
382:
28:
94:
72:
378:
359:
100:
368:– displays elapsed time in years (number only, future dates generate negative number)
441:
365:
362:– displays elapsed time (with same singular or plural text as this template)
59:
15:
63:
and changes may be widely noticed. Test changes in the template's
46:
408:
172:
112:For years or months before or after current date:
92:This was designed as a supporting template for
8:
398:Editors can experiment in this template's
290:
183:
139:For years or months between two dates:
75:. Consider discussing changes on the
7:
256:{{Years or months ago|2024|11}}
246:{{Years or months ago|2024|10}}
276:{{Years or months ago|2026|9}}
266:{{Years or months ago|2025|9}}
236:{{Years or months ago|2024|9}}
226:{{Years or months ago|2024|8}}
216:{{Years or months ago|2024|7}}
206:{{Years or months ago|2023|9}}
196:{{Years or months ago|2022|9}}
14:
383:Template:Years or months ago/doc
50:
19:
60:approximately 90,000 pages
1:
343:{{Years or months ago|2026}}
333:{{Years or months ago|2025}}
323:{{Years or months ago|2024}}
313:{{Years or months ago|2023}}
303:{{Years or months ago|2022}}
86:Template:Years or months ago
95:Template:Start date and age
464:
448:Date mathematics templates
372:
432:Subpages of this template
79:before implementing them.
71:subpages, or in your own
58:This template is used on
426:Add categories to the
176:) to update the page.
144:{{Years or months ago|
130:{{Years or months ago|
117:{{Years or months ago|
24:Template documentation
287:Year only (no month)
260:2 months' time
250:1 month's time
347:2 years' time
337:1 year's time
280:2 years' time
270:1 year's time
240:0 months ago
220:2 months ago
360:Template:Time ago
351:
350:
327:0 years ago
307:2 years ago
284:
283:
230:1 month ago
200:2 years ago
101:Template:Time ago
83:
82:
455:
423:
412:
396:
344:
334:
324:
317:1 year ago
314:
304:
291:
277:
267:
257:
247:
237:
227:
217:
210:1 year ago
207:
197:
184:
175:
161:
135:
126:
54:
53:
47:
44:
25:
23:
22:
463:
462:
458:
457:
456:
454:
453:
452:
438:
437:
436:
435:
425:
417:
402:
397:
386:
371:
356:
342:
332:
322:
312:
302:
289:
275:
265:
255:
245:
235:
225:
215:
205:
195:
182:
171:
168:
143:
129:
116:
110:
51:
45:
26:
20:
18:
12:
11:
5:
461:
459:
451:
450:
440:
439:
370:
369:
363:
355:
352:
349:
348:
345:
339:
338:
335:
329:
328:
325:
319:
318:
315:
309:
308:
305:
299:
298:
295:
288:
285:
282:
281:
278:
272:
271:
268:
262:
261:
258:
252:
251:
248:
242:
241:
238:
232:
231:
228:
222:
221:
218:
212:
211:
208:
202:
201:
198:
192:
191:
188:
181:
180:Year and month
178:
167:
164:
163:
162:
137:
136:
127:
109:
106:
81:
80:
55:
17:
16:
13:
10:
9:
6:
4:
3:
2:
460:
449:
446:
445:
443:
433:
429:
421:
416:
410:
406:
401:
394:
390:
384:
380:
376:
375:documentation
367:
364:
361:
358:
357:
353:
346:
341:
340:
336:
331:
330:
326:
321:
320:
316:
311:
310:
306:
301:
300:
296:
293:
292:
286:
279:
274:
273:
269:
264:
263:
259:
254:
253:
249:
244:
243:
239:
234:
233:
229:
224:
223:
219:
214:
213:
209:
204:
203:
199:
194:
193:
189:
186:
185:
179:
177:
174:
165:
159:
155:
151:
147:
142:
141:
140:
133:
128:
124:
120:
115:
114:
113:
107:
105:
103:
102:
97:
96:
90:
87:
78:
74:
70:
66:
62:
61:
56:
49:
48:
42:
38:
34:
30:
366:Template:Age
169:
157:
153:
149:
145:
138:
131:
122:
118:
111:
99:
93:
91:
85:
84:
73:user subpage
57:
379:transcluded
39:] [
35:] [
31:] [
373:The above
69:/testcases
430:subpage.
415:testcases
294:Template
187:Template
77:talk page
442:Category
354:See also
166:Examples
65:/sandbox
407:|
400:sandbox
393:history
391:|
297:Output
190:Output
37:history
424:pages.
158:month2
150:month1
381:from
154:year2
146:year1
123:month
108:Usage
43:]
41:purge
27:[
428:/doc
420:edit
413:and
409:diff
405:edit
389:edit
173:here
132:year
119:year
33:edit
29:view
377:is
67:or
444::
385:.
160:}}
134:}}
125:}}
104:.
434:.
422:)
418:(
411:)
403:(
395:)
387:(
156:|
152:|
148:|
121:|
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.