What Date Was X Days Ago Calculator
Quickly find the exact date from any number of days in the past. This calculator answers questions like "What was the date 100 days ago?" or "When was 6 weeks ago?"—useful for tracking, compliance, and understanding timelines.
Common Lookback Periods
| Days Ago | Calendar Equivalent | Use Cases |
|---|---|---|
| 7 days | 1 week | Weekly tracking |
| 14 days | 2 weeks | Bi-weekly cycles |
| 30 days | ~1 month | Monthly lookbacks |
| 90 days | ~1 quarter | Quarterly reviews |
| 180 days | ~6 months | Semi-annual |
| 365 days | ~1 year | Annual comparison |
Days Ago Calculator
``javascript
function whatDateWasDaysAgo(daysAgo) {
const today = new Date();
const result = new Date(today);
result.setDate(result.getDate() - daysAgo);
// Calculate what day of week it was
const dayOfWeek = result.toLocaleDateString('en-US', { weekday: 'long' });
return {
today: today.toLocaleDateString('en-US', {
weekday: 'long', year: 'numeric', month: 'long', day: 'numeric'
}),
daysAgo: daysAgo,
thatDate: result.toLocaleDateString('en-US', {
weekday: 'long', year: 'numeric', month: 'long', day: 'numeric'
}),
weeksAgo: Math.floor(daysAgo / 7),
dayOfWeek: dayOfWeek
};
}
``
Tracking Historical Events
This calculation helps contextualize time: "The project started 127 days ago" becomes more meaningful when you know the actual date. It's also useful for verifying timelines, checking statute of limitations, and understanding how long ago events occurred.
Same Day of Week Pattern
Every 7 days, you return to the same day of the week. So 14 days ago was the same weekday as today. 100 days ago? Divide by 7: that's 14 weeks and 2 days, so two days earlier in the week.