Date Calculator Calculators
0 calculators tagged with “Date Calculator”
All Calculators
No calculators found for this topic.
Days Between Two Dates
In Excel/Google Sheets: =DAYS(end_date, start_date) or =end_date − start_date (format result as Number). Example: =DAYS("2025-12-31", "2025-01-01") = 364 days.
In Python: (date(2025,12,31) − date(2025,1,1)).days = 364
Adding Days to a Date
New date = start_date + N days
Excel: =A1+30 adds 30 days. For business days only: =WORKDAY(A1, 30). For months: =EDATE(A1, 3) adds 3 months. Python: date.today() + timedelta(days=30)
Day of the Week
Excel: =TEXT(date_cell, "dddd") returns full day name (Monday, Tuesday…). =WEEKDAY(date_cell, 2) returns 1=Monday through 7=Sunday.
Date Difference in Years, Months, Days
Excel DATEDIF function: =DATEDIF(start, end, "Y") for complete years; =DATEDIF(start, end, "YM") for remaining months; =DATEDIF(start, end, "MD") for remaining days. Example: birthday Jan 1 1990 to today: DATEDIF gives exact age in years, months, and days.
Date Serial Numbers
Excel stores dates as integers: January 1, 1900 = 1; January 1, 2025 ≈ 45658. This is why date arithmetic works — adding or subtracting integers changes the date. Format cells as Date to display; format as Number to see the underlying value.
Glossary
Frequently Asked Questions
In Excel/Google Sheets: =DAYS(end_date, start_date) or simply =end_date − start_date (format the result cell as a Number, not Date). Both give the same result: the number of calendar days. In Python: from datetime import date; delta = date(2025,12,31) − date(2025,1,1); delta.days = 364. If you need business days only: =NETWORKDAYS(start_date, end_date) in Excel (excludes weekends; optionally specify holidays as a third argument).
Since Excel stores dates as serial numbers, simply add the number of days: =A1+30 adds 30 calendar days. For 30 business days: =WORKDAY(A1, 30). For adding months: =EDATE(A1, 3) adds exactly 3 months (accounts for varying month lengths). For adding years: =DATE(YEAR(A1)+1, MONTH(A1), DAY(A1)). Always format the result cell as a Date to display properly. Python equivalent: date.today() + timedelta(days=30).
In Excel: =TEXT(date_cell, "dddd") returns the full day name; =TEXT(date_cell, "ddd") returns abbreviated (Mon, Tue…). =WEEKDAY(date_cell, 2) returns 1 (Monday) through 7 (Sunday). In Python: date(2025, 7, 4).strftime("%A") returns 'Friday'; date.weekday() returns 0=Monday through 6=Sunday. For mental calculation, the Doomsday algorithm provides a systematic method but is complex — spreadsheet functions are more practical.
Use Excel DATEDIF: =DATEDIF(birthdate, TODAY(), "Y") gives complete years; =DATEDIF(birthdate, TODAY(), "YM") gives months beyond the last complete year; =DATEDIF(birthdate, TODAY(), "MD") gives days beyond the last complete month. Combine: =DATEDIF(A1,TODAY(),"Y")&" years, "&DATEDIF(A1,TODAY(),"YM")&" months, "&DATEDIF(A1,TODAY(),"MD")&" days". Note: DATEDIF is undocumented in newer Excel but still works. Python: use dateutil.relativedelta for clean year/month/day breakdowns.