Example: Calculate age from birth date

Born on March 15, 1990. Today is August 4, 2026.

  1. Years: 2026 − 1990 = 36. August is after March, so no adjustment.
  2. Months: March 15 to August 4 = 4 full months (Mar-Apr, Apr-May, May-Jun, Jun-Jul).
  3. Days: July 15 to August 4 = 20 days.

Age: 36 years, 4 months, 20 days

Example: Leap year birthday

Born on February 29, 2000. Today is August 4, 2026.

2026 is not a leap year. The birthday is observed on March 1. March 1, 2026 to August 4, 2026 = 5 months and 3 days.

Age: 26 years, 5 months, 3 days

Example: Date difference

How many days between January 1, 2026 and December 31, 2026?

2026 is not a leap year. Full year = 365 days. December 31 − January 1 = 364 days between those dates.

364 days

Example: Birthday countdown

Your birthday is December 25. Today is August 4, 2026.

Days from Aug 4 to Dec 25: August (27 days left) + September (30) + October (31) + November (30) + December (25) = 143 days.

143 days until your next birthday