Days Between January 1, 2024 and December 31, 2024
The full calendar year 2024. Computed below across multiple units; if either date is "today", the page reflects the build date.
January 1, 2024 → December 31, 2024
365 days
In Other Units
| Total seconds | 31,536,000 |
|---|---|
| Total hours | 8,760 |
| Total days | 365 |
| Total weeks | 52.1 |
| Total months (calendar) | 11 |
| Total years (calendar) | 0 |
How to Calculate This in Code
JavaScript (with day.js)
dayjs('2024-12-31').diff(dayjs('2024-01-01'), 'day')
// 365
Python
from datetime import date (date(2024, 12, 31) - date(2024, 1, 1)).days # 365
Bash (GNU date)
echo $(( ($(date -d '2024-12-31' +%s) - $(date -d '2024-01-01' +%s)) / 86400 )) # 365