Knowledge (XXG)

Template:Age in days

Source 📝

21: 52: 90: 581:
Combines functions of {{Birth date}}, {{birth-date}}, {{birth date and age}}, {{birth year and age}}, {{death date}}, {{death-date}}, {{death date and age}}, and {{death year and age}}.
529: 1545: 739:
To display approximate birth year and current age given a particular date (e.g. when a dated reference mentions the age of a person), only works for living people.
1530: 922: 696: 1518: 522: 36: 1557: 1514: 32: 515: 938: 731: 1481: 480: 747: 1578: 1486: 1500: 986: 40: 1583: 855: 954: 139:
This template returns the number of days between two dates. Dates may be input either as full dates or as year, month and day.
1540: 1076: 970: 68: 1009: 1573: 1525: 657: 64: 1313: 871: 835: 808: 715: 676: 634: 1220:
Current age for infant: months and days up to one year, years and months up to three years, and years beyond age 3.
1442: 1328: 1041: 488: 76: 755:
To display approximate birth year based on age at death, or on age at a specific date if death date isn't known.
1553: 1508: 1124: 28: 1422: 1398: 1212: 1196: 72: 1060: 573: 1378: 1092: 1025: 402:
For reasons of retrospective compatibility, the default when inputting dates as year, month and day is
120: 1457: 1288: 1263: 793: 777: 619: 603: 107: 1504: 1298: 1273: 499: 1173: 96: 1387: 383:
gives unformatted numbers with hyphens as minus signs (for use in further calculations).
1411: 847:, but accepts dates in text form ('15 June 1950', 'June 15, 1950', 'June 1950', etc.). 688:, but accepts dates in text form ('15 June 1950', 'June 15, 1950', 'June 1950', etc.). 1567: 1017:
Number of years between two dates, rounded to the specified number of decimal places.
1185: 1157: 998: 507: 438:
The default is not to show units. To show the unit ("day", days" or "d") use
103: 59: 15: 707:, but with the age displayed in years and days rather than just years. 930:
Number of complete years, months, weeks and days between two dates.
362:
a sort key will be added to the output for use in sortable tables.
63:
and changes may be widely noticed. Test changes in the template's
962:
Number of complete years and remaining months between two dates.
292:{{age in days|month1= |day1= |year1= |month2= |day2= | year2= }} 1352: 1237: 896: 547: 511: 426:
Negative days will occur if the first date is after the second.
978:
Number of complete years and remaining days between two dates.
466:
adds "day" or "days" after the number of days as appropriate.
84: 46: 1204:
Current age (in years) from a known age at a specified date.
946:
Number of complete years, months and days between two dates.
394:
gives numbers formatted with commas and true minus signs.
1165:
Age based on number of complete years between two dates.
1135:
with output formatted for use in number sortable tables.
1052:
with output formatted for use in number sortable tables.
1534: 129: 785:
To display a death date and related hidden metadata.
611:
To display a birth date and related hidden metadata.
879:
To display a year of, and approximate age at death.
250:{{age in days|year1|month1|day1|year2|month2|day2}} 995:{{Age in years and days}} 523: 406:; however when inputting dates in full it is 8: 223:{{age in days||{{#time:j M Y|+ 15 months}}}} 1084:Number of weeks and days between two dates. 1524:Editors can experiment in this template's 1349: 1234: 893: 863:To display a death date and specified age. 845:{{Death date and age}} 825:{{event date and age}} 705:{{Birth date and age}} 686:{{Birth date and age}} 666:{{Birth date and age}} 544: 530: 516: 508: 481:Knowledge (XXG):Age calculation templates 370:Three styles of formatting are possible. 313:{{age in days|month2= |day2= | year2= }} 297:(number of days between dates 1 and 2), 255:(number of days between dates 1 and 2), 166:(number of days between dates 1 and 2), 419: 303:{{age in days|month1= |day1= |year1= }} 461: 450: 439: 407: 403: 388: 378: 359: 203:{{age in days|19 Aug 2008|4 Sep 2010}} 1144:Reverse-determined age template  75:. Consider discussing changes on the 7: 1432:{{OldStyleDate}} 1408:{{OldStyleDate}} 1050:{{Age in years}} 923:Age in years, months, weeks and days 697:Birth date and age in years and days 271:{{age in days||||year2|month2|day2}} 1133:{{Age in days}} 1068:Number of months between two dates. 456:adds "d" after the number of days. 332:{{age in days|2007|5|24|2008|4|23}} 1100:Number of weeks between two dates. 1033:Number of years between two dates. 817:{{Death date}} 723:Year of birth and approximate age. 643:{{Birth date}} 14: 1184:with output formatted for use in 997:with output formatted for use in 307:(number of days since date 1) or 265:(number of days since date 1) or 261:{{age in days|year1|month1|day1}} 176:(number of days since date 1) or 1369:Description / use  1254:Description / use  1148:Description / use  913:Description / use  909:Conventional age templates  768:Description / use  668:plus age as of a specified date. 594:Description / use  564:Description / use  88: 50: 19: 1482:About age calculation templates 1116:Age in days between two dates. 538:Birth, death and age templates 186:(number of days until date 2) 60:approximately 4,800 pages 1: 939:Age in years, months and days 732:Birth based on age as of date 317:(number of day until date 2) 275:(number of day until date 2) 1250:Date-focused templates  1182:{{Age}} 748:Birth based on age at death 560:Combined BDA template  213:{{age in days|27 May 2002}} 161:{{age in days|date1|date2}} 1600: 1579:Date mathematics templates 1498: 1487:Date mathematics templates 1239:start / end dates 283:Or with named parameters: 118: 1558:Subpages of this template 1477: 1359: 1348: 1244: 1233: 987:Age in years and days nts 903: 892: 554: 543: 343:{{age in days|2007|5|24}} 79:before implementing them. 71:subpages, or in your own 58:This template is used on 1584:Date-computing templates 1509:Template:Age in days/doc 1414:fall in different years. 856:Death date and given age 462:|show unit=full 451:|show unit=abbr 1410:but used when Julian / 955:Age in years and months 408:|format=commas 389:|format=commas 1552:Add categories to the 1186:number sortable tables 999:number sortable tables 182:{{age in days||date2}} 24:Template documentation 1434:but without the year. 1077:Age in weeks and days 971:Age in years and days 823:)'; also called with 764:Death templates  590:Birth templates  360:|sortable=on 172:{{age in days|date1}} 1010:Age in decimal years 440:|show unit= 404:|format=raw 379:|format=raw 95:This template uses 1574:Lua-based templates 819:with suffix '(aged 658:Birth date and age2 237:Year, month and day 1314:Start date and age 872:Death year and age 836:Death-date and age 809:Death date and age 716:Birth year and age 677:Birth-date and age 645:with suffix '(age 635:Birth date and age 1495: 1494: 1473: 1472: 1468: 1467: 1344: 1343: 1339: 1338: 1229: 1228: 1224: 1223: 1139: 1138: 888: 887: 883: 882: 759: 758: 585: 584: 549:birth, death, age 470: 469: 398: 397: 351: 350: 321: 320: 279: 278: 232: 231: 190: 189: 117: 116: 83: 82: 1591: 1549: 1538: 1522: 1462: 1456: 1447: 1443:Unidentified for 1441: 1433: 1427: 1421: 1409: 1403: 1397: 1383: 1377: 1370: 1362: 1361: 1350: 1333: 1329:End date and age 1327: 1318: 1312: 1303: 1297: 1293: 1287: 1278: 1272: 1268: 1262: 1255: 1247: 1246: 1235: 1217: 1211: 1201: 1195: 1183: 1178: 1172: 1162: 1156: 1149: 1141: 1140: 1134: 1129: 1123: 1113: 1107: 1097: 1091: 1081: 1075: 1065: 1059: 1051: 1046: 1042:Age in years nts 1040: 1030: 1024: 1014: 1008: 996: 991: 985: 975: 969: 959: 953: 943: 937: 927: 921: 914: 906: 905: 894: 876: 870: 860: 854: 846: 840: 834: 826: 818: 813: 807: 798: 792: 782: 776: 769: 761: 760: 752: 746: 736: 730: 720: 714: 706: 701: 695: 687: 681: 675: 667: 662: 656: 644: 639: 633: 624: 618: 608: 602: 595: 587: 586: 578: 572: 565: 557: 556: 545: 532: 525: 518: 509: 504: 498: 493: 489:Duration in days 487: 463: 452: 447: 446: 441: 434:Showing the unit 427: 424: 409: 405: 390: 380: 375: 374: 361: 344: 333: 328: 327: 314: 304: 293: 288: 287: 272: 262: 251: 246: 245: 224: 214: 204: 199: 198: 183: 173: 162: 157: 156: 132: 92: 91: 85: 54: 53: 47: 44: 25: 23: 22: 1599: 1598: 1594: 1593: 1592: 1590: 1589: 1588: 1564: 1563: 1562: 1561: 1551: 1543: 1528: 1523: 1512: 1497: 1496: 1491: 1469: 1460: 1454: 1445: 1439: 1431: 1425: 1419: 1412:Gregorian dates 1407: 1401: 1395: 1388:Julian calendar 1381: 1375: 1368: 1355: 1340: 1331: 1325: 1316: 1310: 1301: 1295: 1291: 1285: 1276: 1270: 1266: 1260: 1253: 1240: 1225: 1215: 1209: 1199: 1193: 1181: 1176: 1170: 1160: 1154: 1147: 1132: 1127: 1125:Age in days nts 1121: 1111: 1105: 1095: 1089: 1079: 1073: 1063: 1057: 1049: 1044: 1038: 1028: 1022: 1012: 1006: 994: 989: 983: 973: 967: 957: 951: 941: 935: 925: 919: 912: 899: 884: 874: 868: 858: 852: 844: 838: 832: 824: 816: 811: 805: 796: 790: 780: 774: 767: 750: 744: 734: 728: 718: 712: 704: 699: 693: 685: 679: 673: 665: 660: 654: 642: 637: 631: 622: 616: 606: 600: 593: 576: 570: 563: 550: 539: 536: 502: 496: 491: 485: 477: 436: 431: 430: 425: 421: 368: 356: 342: 331: 312: 302: 291: 270: 260: 249: 239: 222: 212: 202: 181: 171: 160: 150: 145: 137: 136: 128: 123: 113: 89: 51: 45: 26: 20: 18: 12: 11: 5: 1597: 1595: 1587: 1586: 1581: 1576: 1566: 1565: 1493: 1492: 1490: 1489: 1484: 1478: 1475: 1474: 1471: 1470: 1466: 1465: 1463: 1451: 1450: 1448: 1436: 1435: 1428: 1423:OldStyleDateNY 1416: 1415: 1404: 1399:OldStyleDateDY 1392: 1391: 1384: 1372: 1371: 1366: 1365:Template  1360: 1357: 1356: 1353: 1346: 1345: 1342: 1341: 1337: 1336: 1334: 1322: 1321: 1319: 1307: 1306: 1304: 1282: 1281: 1279: 1257: 1256: 1251: 1245: 1242: 1241: 1238: 1231: 1230: 1227: 1226: 1222: 1221: 1218: 1213:Age for infant 1206: 1205: 1202: 1197:Age as of date 1190: 1189: 1179: 1167: 1166: 1163: 1151: 1150: 1145: 1137: 1136: 1130: 1118: 1117: 1114: 1102: 1101: 1098: 1086: 1085: 1082: 1070: 1069: 1066: 1054: 1053: 1047: 1035: 1034: 1031: 1019: 1018: 1015: 1003: 1002: 992: 980: 979: 976: 964: 963: 960: 948: 947: 944: 932: 931: 928: 916: 915: 910: 904: 901: 900: 897: 890: 889: 886: 885: 881: 880: 877: 865: 864: 861: 849: 848: 841: 829: 828: 814: 802: 801: 799: 787: 786: 783: 771: 770: 765: 757: 756: 753: 741: 740: 737: 725: 724: 721: 709: 708: 702: 690: 689: 682: 670: 669: 663: 651: 650: 640: 628: 627: 625: 613: 612: 609: 597: 596: 591: 583: 582: 579: 567: 566: 561: 555: 552: 551: 548: 541: 540: 537: 535: 534: 527: 520: 512: 506: 505: 494: 483: 476: 473: 472: 471: 468: 467: 464: 458: 457: 454: 435: 432: 429: 428: 418: 417: 416: 415: 400: 399: 396: 395: 392: 385: 384: 381: 367: 364: 355: 352: 349: 348: 345: 339: 338: 335: 323: 322: 319: 318: 315: 309: 308: 305: 299: 298: 295: 281: 280: 277: 276: 273: 267: 266: 263: 257: 256: 253: 241:To use, type: 238: 235: 234: 233: 230: 229: 226: 219: 218: 215: 209: 208: 205: 192: 191: 188: 187: 184: 178: 177: 174: 168: 167: 164: 152:To use, type: 149: 146: 144: 141: 135: 134: 124: 119: 115: 114: 112: 111: 100: 93: 81: 80: 55: 17: 16: 13: 10: 9: 6: 4: 3: 2: 1596: 1585: 1582: 1580: 1577: 1575: 1572: 1571: 1569: 1559: 1555: 1547: 1542: 1536: 1532: 1527: 1520: 1516: 1510: 1506: 1502: 1501:documentation 1488: 1485: 1483: 1480: 1479: 1476: 1464: 1459: 1453: 1452: 1449: 1444: 1438: 1437: 1429: 1424: 1418: 1417: 1413: 1405: 1400: 1394: 1393: 1389: 1385: 1380: 1374: 1373: 1367: 1364: 1363: 1358: 1354:miscellaneous 1351: 1347: 1335: 1330: 1324: 1323: 1320: 1315: 1309: 1308: 1305: 1300: 1290: 1284: 1283: 1280: 1275: 1265: 1259: 1258: 1252: 1249: 1248: 1243: 1236: 1232: 1219: 1214: 1208: 1207: 1203: 1198: 1192: 1191: 1187: 1180: 1175: 1169: 1168: 1164: 1159: 1153: 1152: 1146: 1143: 1142: 1131: 1126: 1120: 1119: 1115: 1110: 1104: 1103: 1099: 1094: 1088: 1087: 1083: 1078: 1072: 1071: 1067: 1062: 1061:Age in months 1056: 1055: 1048: 1043: 1037: 1036: 1032: 1027: 1021: 1020: 1016: 1011: 1005: 1004: 1000: 993: 988: 982: 981: 977: 972: 966: 965: 961: 956: 950: 949: 945: 940: 934: 933: 929: 924: 918: 917: 911: 908: 907: 902: 895: 891: 878: 873: 867: 866: 862: 857: 851: 850: 842: 837: 831: 830: 822: 815: 810: 804: 803: 800: 795: 789: 788: 784: 779: 773: 772: 766: 763: 762: 754: 749: 743: 742: 738: 733: 727: 726: 722: 717: 711: 710: 703: 698: 692: 691: 683: 678: 672: 671: 664: 659: 653: 652: 648: 641: 636: 630: 629: 626: 621: 615: 614: 610: 605: 599: 598: 592: 589: 588: 580: 575: 574:BirthDeathAge 569: 568: 562: 559: 558: 553: 546: 542: 533: 528: 526: 521: 519: 514: 513: 510: 501: 495: 490: 484: 482: 479: 478: 474: 465: 460: 459: 455: 449: 448: 445: 444: 443: 433: 423: 420: 413: 412: 411: 393: 387: 386: 382: 377: 376: 373: 372: 371: 365: 363: 353: 346: 341: 340: 336: 330: 329: 326: 316: 311: 310: 306: 301: 300: 296: 290: 289: 286: 285: 284: 274: 269: 268: 264: 259: 258: 254: 248: 247: 244: 243: 242: 236: 227: 221: 220: 216: 211: 210: 206: 201: 200: 197: 196: 195: 185: 180: 179: 175: 170: 169: 165: 159: 158: 155: 154: 153: 147: 142: 140: 131: 126: 125: 122: 109: 105: 102: 101: 98: 94: 87: 86: 78: 74: 70: 66: 62: 61: 56: 49: 48: 42: 38: 34: 30: 1461:}} 1455:{{ 1446:}} 1440:{{ 1426:}} 1420:{{ 1402:}} 1396:{{ 1382:}} 1379:OldStyleDate 1376:{{ 1332:}} 1326:{{ 1317:}} 1311:{{ 1302:}} 1296:{{ 1292:}} 1286:{{ 1277:}} 1271:{{ 1267:}} 1261:{{ 1216:}} 1210:{{ 1200:}} 1194:{{ 1177:}} 1171:{{ 1161:}} 1155:{{ 1128:}} 1122:{{ 1112:}} 1108: 1106:{{ 1096:}} 1093:Age in weeks 1090:{{ 1080:}} 1074:{{ 1064:}} 1058:{{ 1045:}} 1039:{{ 1029:}} 1026:Age in years 1023:{{ 1013:}} 1007:{{ 990:}} 984:{{ 974:}} 968:{{ 958:}} 952:{{ 942:}} 936:{{ 926:}} 920:{{ 875:}} 869:{{ 859:}} 853:{{ 839:}} 833:{{ 820: 812:}} 806:{{ 797:}} 791:{{ 781:}} 775:{{ 751:}} 745:{{ 735:}} 729:{{ 719:}} 713:{{ 700:}} 694:{{ 680:}} 674:{{ 661:}} 655:{{ 646: 638:}} 632:{{ 623:}} 617:{{ 607:}} 601:{{ 577:}} 571:{{ 503:}} 497:{{ 492:}} 486:{{ 437: 422: 401: 369: 357: 324: 282: 240: 217:gives 8,149 193: 151: 138: 133:}} 127:{{ 73:user subpage 57: 1505:transcluded 1458:Missing for 1109:Age in days 347:gives 6326 39:] [ 35:] [ 31:] [ 1568:Categories 1499:The above 1289:Start-date 1264:Start date 794:Death-date 778:Death date 620:Birth-date 604:Birth date 366:Formatting 358:By adding 337:gives 335 325:Examples: 228:gives 456 207:gives 746 194:Examples: 148:Full dates 104:Module:Age 69:/testcases 1556:subpage. 1541:testcases 1386:Dates in 77:talk page 1299:End-date 1274:End date 898:age only 500:Time ago 475:See also 121:Shortcut 65:/sandbox 1533:| 1526:sandbox 1519:history 1517:| 1174:Age nts 354:Sorting 108:sandbox 37:history 1550:pages. 453:  391:  334:  294:  252:  225:  163:  1507:from 143:Usage 43:] 41:purge 27:[ 1554:/doc 1546:edit 1539:and 1535:diff 1531:edit 1515:edit 414:Note 33:edit 29:view 1503:is 1430:As 1406:As 1158:Age 843:As 684:As 649:)'. 130:aid 97:Lua 67:or 1570:: 1511:. 1294:/ 1269:/ 442:. 410:. 99:: 1560:. 1548:) 1544:( 1537:) 1529:( 1521:) 1513:( 1390:. 1188:. 1001:. 827:. 821:N 647:N 531:e 524:t 517:v 110:) 106:(

Index

view
edit
history
purge
approximately 4,800 pages
/sandbox
/testcases
user subpage
talk page
Lua
Module:Age
sandbox
Shortcut
aid
Knowledge (XXG):Age calculation templates
Duration in days
Time ago
v
t
e
BirthDeathAge
Birth date
Birth-date
Birth date and age
Birth date and age2
Birth-date and age
Birth date and age in years and days
Birth year and age
Birth based on age as of date
Birth based on age at death

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.