Knowledge (XXG)

Template:Age in days/doc

Source 📝

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

Index

Template:Age in days
documentation
subpage
Template:Age in days
categories
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

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