AAllMyToolsa pocketful of little tools

Days to milliseconds converter

Convertersconversion pair

Convert days to milliseconds: 1 day is exactly 86,400,000 ms, so 30 days is 2.592 billion. Timer math, exact factor and one-click copy.

thirty days is 2.592 billion milliseconds — the number your session-expiry code quietly stores.

work surface

Math, not advice — results are indicative.Read the disclaimer.

pro tips

One day is 86.4 million ms; multiply the days by 86,400,000.

In JavaScript, 7 * 24 * 60 * 60 * 1000 is clearer than the raw week in milliseconds.

Milliseconds suit timers and days suit humans; convert only at the boundary.

what it does

A day is 24 hours, or 86,400 seconds, and a second is 1,000 milliseconds, so one day is exactly 86,400,000 milliseconds.

It appears in code far more than in conversation: session expiry, cache lifetimes and cron schedules are all set in milliseconds, so a 30-day cookie becomes 2,592,000,000.

Worked example: 7 days is 604,800,000 ms, and 1 hour is 3,600,000 ms. In JavaScript the clear version is 7 * 24 * 60 * 60 * 1000, not the raw digits.

Type a day count and the milliseconds update live, with the multiplication shown. Copy in one click, or swap to turn milliseconds back into days.

quick answers

How many milliseconds are in one day?

86,400,000. That is 24 hours times 60 minutes times 60 seconds times 1,000 milliseconds, with no rounding anywhere.

How many milliseconds is thirty days?

2,592,000,000. Thirty times 86,400,000 gives the figure, which is the common default for a long-lived session or cookie.

How many milliseconds is a week?

604,800,000. Seven days is a natural timer unit, and the raw millisecond number is a good reason to keep the multiplication explicit in code.