Skip to main content

learn.howToCalculate

learn.whatIsHeading

An age calculator determines the exact elapsed time from a birth date to today (or any target date), accounting for varying month lengths and leap years.

Hướng dẫn từng bước

  1. 1Subtract birth year from current year to get base age
  2. 2If birthday has not yet passed this year, subtract 1 from the result
  3. 3For exact days: count days elapsed since last birthday
  4. 4Leap years (Feb 29 birthdays) are counted as Feb 28 in non-leap years

Ví dụ có lời giải

đầu vào
Born Jan 15, 1990 → Apr 1, 2025
Kết quả
35 years, 2 months, 17 days
đầu vào
Born Feb 29, 2000 → Apr 1, 2025
Kết quả
25 years, 1 month, 1 day
Leap day counted as Feb 28 in non-leap years

Cài đặt