Days to Milliseconds Converter
Convert days to milliseconds instantly. Enter any value — the result updates as you type. 1 day = exactly 86,400,000 milliseconds. The day is the cleanest large time unit: 24 × 60 × 60 × 1,000 — built entirely from round numbers. Use the swap button to convert milliseconds back to days.
| Days | Milliseconds |
|---|---|
| 0.5 | 43,200,000 |
| 1 | 86,400,000 |
| 2 | 172,800,000 |
| 3 | 259,200,000 |
| 7 | 604,800,000 |
| 14 | 1,209,600,000 |
| 30 | 2,592,000,000 |
| 90 | 7,776,000,000 |
| 100 | 8,640,000,000 |
| 180 | 15,552,000,000 |
| 365 | 31,536,000,000 |
| 1000 | 86,400,000,000 |
How to Convert Days to Milliseconds
The day is the most fundamental human time unit — defined by the Earth's rotation — and the cleanest to convert to milliseconds: 1 day = 24 hours × 60 min × 60 sec × 1,000 ms = 86,400,000 milliseconds, exactly. Every factor is a round number: 24, 60, 60, 1,000. No Gregorian drift, no leap-year correction, no mean-year approximation. This exactness makes the day the most reliable unit for software date arithmetic. Virtually every date library in every programming language anchors its internal representation to the day: Unix timestamps count seconds since the epoch; Date.now() counts milliseconds; Python's datetime.date counts days. The day-to-millisecond conversion is the single most used time conversion in software development, appearing in cookie expiry, cache TTL, session management, analytics time windows, countdown timers, and scheduling systems worldwide.
Conversion: Days × 86,400,000 = Milliseconds
Why 86,400,000? The Architecture of a Day
1 day = 24 hr = 1,440 min = 86,400 s = 86,400,000 ms
86,400,000 = 2⁷ × 3³ × 5⁵ × 2³ = 2¹⁰ × 3³ × 5⁵
Prime factorization: 2¹⁰ × 3³ × 5⁵ = 1,024 × 27 × 3,12586,400,000 is highly composite: it is divisible by 1, 2, 3, 4, 5, 6, 8, 10, 12, 15, 16, 20, 24, 25, 30, 32, 40, 50, 60, 64, 75, 80, 100, 120, 125, 150, 160, 200, 240, 250, 300, 320, 375, 400, 480, 500, 600, 625, 750, 800, 1000... This means you can evenly divide a day into hours (86,400,000 ÷ 3,600,000 = 24), into 15-minute intervals (86,400,000 ÷ 900,000 = 96), into minutes (86,400,000 ÷ 60,000 = 1,440), into seconds (86,400,000 ÷ 1,000 = 86,400), and into many other symmetric intervals — all producing clean integers. This divisibility is why the day is the natural anchor for all time computations.
Days to Milliseconds: The "1,000 Days" Milestone
1,000 days = 86,400,000,000 ms (exactly 86.4 billion ms) — a milestone celebrated in politics, relationships, startups, and space exploration. Famous 1,000-day spans:
Days to Milliseconds: "How Many Days Old Am I?"
Your age in days × 86,400,000 gives your exact age in milliseconds (ignoring time-of-day). Famous age milestones in days and their millisecond equivalents:
Days to Milliseconds: History's Greatest Durations
Days to Milliseconds: Software Development Reference
The day × 86,400,000 ms is the cornerstone formula in almost every backend and frontend system. Here are the exact values every developer should have memorised:
- Cookie / session 1 day:
maxAge: 86400(seconds) or86400000(ms). This is the single most common time constant in web development - Cookie 7 days (1 week):
604800000ms. "Remember me" sessions - Cookie 30 days:
2592000000ms. Standard persistent login - Cookie 90 days:
7776000000ms. Long-lived analytics - Cookie 365 days:
31536000000ms. Annual consent cookies - Cache-Control max-age 1 day:
86400seconds. CDN and browser cache TTL - JWT expiry 1 day:
exp: Math.floor(Date.now()/1000) + 86400 - Days since Unix epoch:
Math.floor(Date.now() / 86400000). As of March 2025 ≈ 20,156 days since Jan 1, 1970 - Is today a specific weekday?:
(Math.floor(Date.now() / 86400000) + 4) % 7— gives 0=Sunday, 1=Monday... (Unix epoch day 0 was a Thursday, so +4 offset) - Rolling 30-day window:
const thirtyDaysAgo = Date.now() - 30 * 86400000;
Days to Milliseconds: Science, Nature and Astronomy
- The day is not perfectly uniform: The SI second is defined by atomic clocks, not Earth's rotation. Earth's rotation rate fluctuates by up to ±3 ms/day due to tidal forces, atmospheric pressure, and core dynamics. UTC leap seconds correct for this drift, which accumulates at ~1.4 ms/century
- Mars day (sol = 24 hr 39 min 35 s): 1 Martian sol = 88,775,244 ms ≈ 88.78 million ms — about 2.3% longer than an Earth day (86,400,000 ms). NASA's Mars rovers track time in sols
- Venus day (243 Earth days, retrograde): 243 × 86,400,000 = 20,995,200,000 ms. Venus rotates so slowly its day is longer than its year (224.7 Earth days)
- Jupiter day (~9 hr 55 min): ~35,700,000 ms — less than half an Earth day in ms
- Circadian rhythm (human biological day): The human circadian clock averages ~24 hr 11 min = 87,060,000 ms — 660,000 ms (11 min) longer than the solar day. Daily light exposure re-synchronises it to 86,400,000 ms
- Speed of light per day: 299,792,458 m/s × 86,400 s = 25,902,068,371,200 m ≈ 0.0821 light-years per day of travel at light speed
Tips and Recommendations
- Formula: Milliseconds = Days × 86,400,000. Inverse: Days = Milliseconds ÷ 86,400,000. This is the most exact time conversion: every integer number of days produces an exact integer number of milliseconds.
- In JavaScript:
const ms = days * 86400000;. Days ago:Date.now() - n * 86400000. Days since epoch:Math.floor(Date.now() / 86400000). Days between dates:(new Date(b) - new Date(a)) / 86400000. - In Python:
ms = days * 86400000. Days between:(date_b - date_a).daysthen × 86,400,000. With timedelta:timedelta(days=n).total_seconds() * 1000. - In Excel:
=A1*86400000. Days between dates:=B1-A1(Excel stores dates as days since Dec 30, 1899). Days to ms:=(B1-A1)*86400000. - 32-bit overflow: 2,147,483,647 ms ÷ 86,400,000 = 24.855 days. Any day count above 24 days overflows a 32-bit integer in milliseconds. Use 64-bit types for all day × ms calculations.
- Quick mental check: 1 day = 86.4 million ms. 10 days = 864 million ms. 100 days = 8.64 billion ms. 1,000 days = 86.4 billion ms. Multiply by 86.4, then by 106.
Days to Milliseconds — Frequently Asked Questions
How many milliseconds are in 1 day?
1 day = exactly 86,400,000 milliseconds. Derivation: 24 × 60 × 60 × 1,000 = 86,400,000. This is a perfect integer with zero approximation.
How many milliseconds are in 7 days?
7 × 86,400,000 = 604,800,000 milliseconds = exactly 1 week. Date.now() - 604800000 gives exactly 7 days ago in any JavaScript environment.
How many milliseconds are in 30 days?
30 × 86,400,000 = 2,592,000,000 milliseconds. Note: a mean Gregorian month = 2,629,746,000 ms, which is 37,746,000 ms (≈ 10.5 hours) more than 30 days.
How many milliseconds are in 365 days?
365 × 86,400,000 = 31,536,000,000 milliseconds. A mean Gregorian year = 31,556,952,000 ms (365.2425 days). The difference: 20,952,000 ms ≈ 5.82 hours per year.
How many days is 1 billion milliseconds?
1,000,000,000 ÷ 86,400,000 = 11.574 days ≈ 11 days 13 hours 46 minutes 40 seconds.
How many days is 1 trillion milliseconds?
1,000,000,000,000 ÷ 86,400,000 = 11,574.07 days ≈ 31.69 years.
How many milliseconds old am I if I am 10,000 days old?
10,000 × 86,400,000 = 864,000,000,000 milliseconds = 864 billion ms. You reach 10,000 days old at approximately age 27 years and 4 months.
How do I get the current day count since the Unix epoch in JavaScript?
Math.floor(Date.now() / 86400000) returns the number of complete days since January 1, 1970 (UTC). As of March 2025 this is approximately 20,156 days.
How do I convert days to milliseconds in Excel?
=A1*86400000. Days between two date cells: =B1-A1 (Excel stores dates as days). Days to ms from date difference: =(B1-A1)*86400000.
How do I convert days to milliseconds in Python?
ms = days * 86400000. Days between dates: (date_b - date_a).days * 86400000. With timedelta: from datetime import timedelta; timedelta(days=n).total_seconds() * 1000.
How do I convert days to milliseconds in JavaScript?
const ms = days * 86400000;. Date difference in days: (new Date(b) - new Date(a)) / 86400000. Days since epoch: Math.floor(Date.now() / 86400000).
Why does a day have exactly 86,400,000 milliseconds?
A day = 24 hours × 60 minutes × 60 seconds × 1,000 milliseconds = 86,400,000 ms. The 24-hour day comes from ancient Egyptian astronomy; the 60-minute hour from Babylonian base-60 mathematics; the 1,000 ms/second from the SI prefix system. All factors are exact integers, so the result is exact.