Skip to main content
Date & Time

Date Difference Calculator

Pick any two dates and instantly see the gap in calendar days, working days (Mon–Fri), weekend days, plus a year/month/day breakdown and totals in weeks and months. Handy for deadlines, trip planning, visa stay durations and maternity leave.

Days difference

90 days

Years / months / days

Working days exclude weekends only — Hong Kong public holidays are not yet deducted.

Working days (Mon–Fri)

Weekend days

Total weeks

Total months

Formula

Days difference = |end − start| (using Julian day subtraction) Working days = Mon–Fri count within the (start, end] range Y/M/D breakdown = calendar walk from start to end

Frequently asked

Are “working days” the same as Hong Kong bank business days for contracts or maternity leave?

This tool counts working days as Mon–Fri only — equivalent to Excel’s NETWORKDAYS default (no holiday list). HK bank business days exclude Saturdays, Sundays AND statutory public holidays. Hong Kong’s Employment Ordinance also defines “rest day”, “statutory holiday” and “public holiday” differently. For strict bank-business-day counting, cross-check the Labour Department / HKMA holiday calendar and adjust manually.

From Jan 1 to Jan 2 — is that 1 day or 2 days?

This tool reports the gap (end − start), so Jan 1 → Jan 2 is 1 day. If you need the inclusive count (both endpoints), simply add 1. The classic example is hotels: check in Jan 1, check out Jan 3 → 2 nights, which is exactly what hotels charge for.

What happens if the end date is earlier than the start date?

No error. A small info banner appears and the tool reports the absolute difference (days, working days, etc.). You don’t need to worry about which date goes first — the totals work in either direction.

Related tools

Age Calculator

From your date of birth, get exact age, Chinese nominal age (虛歲), days lived and days to next birthday.

Time Zone Converter

Pick your local and target cities to convert a given clock time across time zones.

Date Add / Subtract Calculator

Add or subtract years, months, weeks and days from a start date to get the resulting date and weekday.

Business Days Calculator

Count the working days between two dates (excluding weekends) — or add N business days to a start date to find the deadline.

Pregnancy Due Date Calculator

Estimate the due date from your last menstrual period (LMP) using Naegele's rule, plus current gestational week, trimester and key pregnancy milestones.

Time Card Calculator (clock-in / clock-out / break)

Enter clock-in/clock-out times and break minutes to get total hours worked and gross pay — overnight (graveyard) shifts handled automatically.

Day of Year & Week Number Calculator

Pick any date to see which day of the year (1–366), ISO 8601 week number, weekday, and how many days from the start and end of the year.

Day of the Week Calculator (Any Date)

Enter any Gregorian date (past or future) to instantly find the day of the week — useful for birthdays, anniversaries and historical events.

Unix Timestamp ↔ Date Converter

Convert a Unix timestamp (seconds or milliseconds since 1970-01-01 UTC) to UTC, Hong Kong time and RFC 1123 HTTP date — and back. Built for debugging log files, API responses and database fields.

Easter Date Calculator

Pick a year and the Computus algorithm returns Easter Sunday plus Ash Wednesday, Palm Sunday and Good Friday.

Moon Phase Calculator

Enter any date to compute the lunar phase (new, first quarter, full, last quarter …), moon age in days and illuminated fraction.

Chinese Zodiac & Lunar Age Calculator

Find your Chinese zodiac animal, stem-branch element, zodiac year and lunar (nominal) age from any birth date.

Western Zodiac Sign Calculator

Enter your birth date to see your Western zodiac sign (Aries, Taurus, Gemini…) along with its element, modality and opposing sign.

Birthstone Calculator

Pick a birth month to instantly see the modern and traditional birthstones, the birth flower, the spanning zodiac signs and a colour swatch — handy when choosing jewellery or birthday gifts.

Julian Day Number Calculator

Convert a Gregorian calendar date to its Julian Day Number (JDN) and Modified Julian Day (MJD) — used in astronomy, history, and cross-calendar date math.

ISO 8601 Week Number Calculator

Enter any date and compute its ISO 8601 week number, ISO year and weekday — using the Monday-first / first-week-contains-Jan-4 rule.

Time Between Two Times Calculator

Enter two clock times (HH:MM[:SS]) and instantly see the difference in hours, minutes and seconds — with overnight-shift handling and decimal-hour output.

Hong Kong Statutory Annual Leave Calculator

Enter years of service and see the statutory paid annual leave entitlement under the HK Employment Ordinance §41AA.

Half-Birthday Calculator

Enter your date of birth to see when your next half-birthday falls, how many days away it is, and your current half-age (e.g. 33.5 years).

Daylight Hours (Sunrise / Sunset) Calculator

Enter a latitude, longitude and date to get the local sunrise, sunset, solar noon and total daylight hours using the NOAA solar position formula.