Kalkulator Tanggal
Add or subtract days, weeks, months, and years from any start date. Free date calculator with leap-year aware calendar math in your browser-no signup needed.
How to Use
- Pick the start date-the calendar anchor for your calculation.
- Enter days, weeks, months, and/or years to shift. Leave unused fields at zero.
- Click Add to date to move forward or Subtract from date to move backward.
- Review the resulting calendar date in the result panel.
- Reset and try alternate offsets without reloading the page.
Input Field Guide
- Start date
- The calendar date you are shifting from. Required for both addition and subtraction.
- Days
- Calendar days to add or subtract. Combined with weeks for total day offset.
- Weeks
- Whole weeks (7-day blocks) to add or subtract alongside days.
- Months
- Calendar months with end-of-month clamping (e.g., Jan 31 + 1 month -> Feb 28/29).
- Years
- Whole years, respecting leap-day rules when the start date is February 29.
Understanding Your Results
The primary result is the new calendar date after applying your offsets in order: years, months, weeks, then days. Month and year adjustments use civil calendar rules, so end-of-month dates clamp to the last valid day of the target month rather than overflowing.
Features
- Add or subtract days, weeks, months, and years
- Leap-year and end-of-month aware month math
- Dual Add and Subtract actions on one form
- No account or server upload
- Mobile-friendly date picker
- Clear error when start date is missing
Formula & Calculation Logic
New date = startDate ± years ± months ± (weeks*7 + days). Month/year steps use calendar component arithmetic with clamping when the target month has fewer days.
Real-World Use Cases
- Contract notice and renewal deadlines
- Warranty and return-window end dates
- Pregnancy due-date style month offsets
- School term and semester planning
- Visa validity extension estimates
Practical Examples
Start 15 Jan 2026, add 1 month -> 15 Feb 2026 for recurring invoice dates.
Start 31 Mar 2026, add 1 month -> 30 Apr 2026 because April has 30 days.
Benefits
- Avoid spreadsheet DATE function surprises on month ends
- Compare add vs subtract without retyping the start date
- Private local calculation for sensitive contract dates
- Instant results with no install
Tips & Best Practices
- Enter weeks instead of days when your policy counts in 7-day blocks.
- For business-day-only counts, use the working days or business days calculator.
- Double-check leap-day starts when adding whole years.
Common Mistakes to Avoid
- Treating one month as exactly 30 days-this tool uses calendar months.
- Forgetting that subtraction uses the same offset fields as addition.
- Using this for weekday-only counts instead of a working-days tool.
Frequently Asked Questions
How does the date calculator handle month-end dates?
When the target month has fewer days, the result clamps to the last valid day (e.g., Jan 31 + 1 month -> Feb 28 or 29).
Can I subtract months and years?
Yes. Use Subtract from date with positive values in the month and year fields.
Does it account for leap years?
Yes. February 29 and leap-year transitions follow Gregorian calendar rules.
Can I add only weeks without days?
Yes. Set days to zero and enter the week count; weeks convert to 7-day blocks.
What order are offsets applied?
Years and months adjust calendar components first, then weeks and days add absolute day offsets.
Is the start date included in the result?
The result is the new date after the shift, not a count of days between dates.
Can I calculate business days here?
No. Use the working days or business days calculator to exclude weekends and holidays.
Are my dates sent to a server?
No. All date math runs locally in your browser.