Add Weeks to Date Calculator
Calculate future dates by adding any number of weeks to a starting date. Weeks are natural planning units—meetings repeat weekly, paychecks arrive bi-weekly, and many project cycles run in week-based sprints.
Week-Based Planning
| Weeks | Days | Common Use |
|---|---|---|
| 1 week | 7 days | Weekly meetings |
| 2 weeks | 14 days | Bi-weekly pay, sprints |
| 4 weeks | 28 days | Monthly approximation |
| 6 weeks | 42 days | Training programs |
| 8 weeks | 56 days | Course duration |
| 12 weeks | 84 days | Quarter approximation |
Add Weeks Calculator
``javascript
function addWeeksToDate(startDate, weeks) {
const start = new Date(startDate);
const result = new Date(start);
result.setDate(result.getDate() + (weeks * 7));
const daysDiff = weeks * 7;
return {
startDate: start.toLocaleDateString('en-US', {
weekday: 'long', year: 'numeric', month: 'long', day: 'numeric'
}),
resultDate: result.toLocaleDateString('en-US', {
weekday: 'long', year: 'numeric', month: 'long', day: 'numeric'
}),
weeksAdded: weeks,
totalDays: daysDiff,
sameDayOfWeek: true // Adding weeks preserves day of week
};
}
`
Day-of-Week Consistency
Adding weeks always preserves the day of the week. If you start on a Monday and add 3 weeks, you'll land on a Monday. This makes week-based planning predictable for recurring events and scheduling.
Converting Weeks to Other Units
Quick conversions: 1 week = 7 days = 168 hours. 4 weeks ≈ 1 month (but 28 days, not 30). 13 weeks = 1 quarter. 52 weeks = 1 year (though a year has 365 or 366 days).
The Traps in Date Arithmetic
Months are not 30 days. Adding one month to 31 January has no correct answer, and every
library picks differently — 28 February, 2 March or an error. Decide which your business
needs before the edge case decides for you.
Days are not always 86,400 seconds. Daylight saving makes one day 23 hours and another
25. Adding n * 86400000 milliseconds drifts by an hour twice a year, which is enough to
move a date across midnight and return an answer one day out.
`javascript
// Correct — the Date object normalises overflow and handles DST
const addDays = (date, days) => {
const result = new Date(date);
result.setDate(result.getDate() + days);
return result;
};
// Correct — calendar days, unaffected by DST or time of day
const daysBetween = (a, b) => {
const utc = (d) => Date.UTC(d.getFullYear(), d.getMonth(), d.getDate());
return Math.round((utc(b) - utc(a)) / 86400000);
};
`
Months are zero-indexed in JavaScript. new Date(2026, 0, 1) is January. new
Date(2026, 12, 1) is January 2027, silently.
Parsing is not portable. new Date("2026-08-30") is parsed as UTC, while
new Date("2026/08/30")` is parsed as local — the same calendar date, a day apart in some
zones. Always parse ISO 8601, and construct with explicit components when the time matters.
Time Zones Decide the Answer
| Question | Depends on |
|---|---|
| How many days until an event? | The viewer's zone |
| Is this subscription expired? | UTC, always |
| What day of the week was this? | The zone the event happened in |
| When does "tomorrow" start? | The viewer's zone |
Reference Points
| Interval | Days |
|---|---|
| Week | 7 |
| Month (average Gregorian) | 30.44 |
| Quarter | 91.31 |
| Year | 365.2425 |
| Leap year | 366 |