Days Converters

Simplify your time calculations. Convert days to date, milliseconds, seconds, minutes, hours, weeks, months, years and centuries — all in one place.

Days

d
Up to 20 digits. Values beyond JavaScript safe range may lose precision.

Output

To Date
To milliseconds
To seconds
To minutes
To hours
To weeks
To months (≈ 30.44 d)
To years (≈ 365.2425 d)
To centuries
Months ≈ 30.44 days; years ≈ 365.2425 days; 1 century = 100 years.

About the days converter

One day (d) is the base unit for planning and reporting. It balances detail and readability for schedules, SLAs, and time windows.

Why it matters

Days sit between hours and months, making them ideal for timelines, roadmaps, billing cycles, and uptime tracking.

Use cases

  • Planning backup rotations and retention policies
  • Defining SLA windows and maintenance periods
  • Setting up daily cron jobs and reports

Solar vs civil time and DST

A solar day measures the sun's return, while a civil day follows the calendar. Around daylight saving shifts, some days contain 23 or 25 hours, so adding 24 hours doesn’t always advance to the same local time. Prefer UTC or timezone-aware libraries when calculating day spans.

Typical conversions

  • d → Date: convert days to a human-readable timestamp
  • d → ms / s / min / h / wk: scale time to smaller or weekly units
  • d → months / years / centuries: approximate longer spans

Code snippets

Convert days to other units:

JavaScript

const days = 14;
const weeks = days / 7;
console.log(`${weeks} wk`);

Python

days = 14
weeks = days / 7
print(f"{weeks} wk")

PHP

$days = 14;
$weeks = $days / 7;
echo $weeks . " wk";

Common errors

IssueExplanation
Assuming all months have 30 daysMonth length varies between 28 and 31 days.
Ignoring leap years when converting to yearsEvery fourth year adds an extra day which affects long-term calculations.

FAQ

How many days are in a week?
There are 7 days in a week.
How do I convert days to hours?
Multiply the number of days by 24.
Why isn't a month exactly 30 days?
Calendar months vary due to astronomical and historical reasons.
How many days are in a year?
Common years have 365 days, leap years have 366.
Can days be fractional?
Yes, 0.5 days equals 12 hours.
Copied to clipboard