Skip to main content
DevTools24

Date Difference Calculator

Calculate the exact difference between two dates in days, weeks, and months. Includes working days count.

Date Calculations - Detalles técnicos

Date difference calculations account for varying month lengths and leap years. Working days exclude Saturdays and Sundays from the count.

Alternativa de línea de comandos

# Using GNU date
echo $(( ( $(date -d '2024-12-31' +%s) - $(date -d '2024-01-01' +%s) ) / 86400 )) days

# Using Python
python3 -c "from datetime import date; print((date(2024,12,31) - date(2024,1,1)).days)"