Age & Date Difference Calculator
Filling out an EPF claim or a visa application? Use this calculator to find the precise number of years, months, and days between any two dates without dealing with complicated leap year math.
Select Dates
Select a start and end date to calculate the exact duration in years, months, and days.
Why months are counted before days
Months have different lengths, so an age of years, months, and days only means something when the months are counted first and the leftover days measured against the actual calendar. Working purely in total days and dividing by 30.44 gives a different, and less useful, answer.
A month is added by landing on the same day number, or on the month end where that day does not exist. One month after 31 January is 28 February, so 31 January to 1 March is one month and one day. The same span in a leap year is one month and zero days, because February reaches the 29th.
| From | To | Years, months, days | Total days |
|---|---|---|---|
| 1 Jan 2000 | 1 Jan 2026 | 26y 0m 0d | 9,497 |
| 31 Jan 2026 | 1 Mar 2026 | 0y 1m 1d | 29 |
| 29 Feb 2024 | 28 Feb 2026 | 2y 0m 0d | 730 |
Time zones, and why this tool builds dates from parts
A date typed into a date field has no time and no time zone attached to it. Parsing that text with the browser's default rules treats it as UTC midnight, which is the previous calendar day for anyone west of Greenwich -- so the same birth date can yield an age a day larger in Toronto than in Colombo.
This calculator constructs both dates from their year, month, and day components in local time instead, so a birth date means the same day whether you open the page from Colombo, London, or Melbourne.
Anniversaries that fall on 29 February
A date of birth on 29 February has a real anniversary only every fourth year. The convention followed here is to observe it on 1 March in common years, which is what the next-milestone countdown uses.
This is a convention rather than a universal rule. Some legal systems treat the anniversary as 28 February for age-threshold purposes, so check the specific rule where a date of majority or a deadline is at stake.