This calculator tells you exactly how many days have passed since the most recent Friday, based on today’s date. You enter today’s date (or any date you want to check from), and the calculator returns the number of full days since the last Friday, counting today as day 0 if today is Friday. It also shows the date of that last Friday for reference.
Formula
The calculation uses the JavaScript Date object’s getDay() method, which returns a number from 0 (Sunday) to 6 (Saturday). Friday is represented by 5. The formula to find the most recent Friday is:
daysSinceFriday = (today – lastFriday) / 86,400,000
Where:
- today – the current date at 00:00:00 (midnight), in milliseconds since the Unix epoch (January 1, 1970).
- lastFriday – the date of the most recent Friday, also in milliseconds.
- 86,400,000 – the number of milliseconds in one day (24 hours × 60 minutes × 60 seconds × 1000 ms).
To compute lastFriday from today:
lastFriday = today – ((today.getDay() + 2) % 7) days
Explanation: getDay() gives 0–6. For Friday (5), the offset is (5 + 2) % 7 = 0, so lastFriday is today. For Monday (1), offset = (1 + 2) % 7 = 3, so lastFriday is 3 days ago (the previous Friday). For Sunday (0), offset = 2, so lastFriday is 2 days ago (Friday). The modulo ensures the offset is always between 0 and 6.
Worked Example
Using the default date of 2025-01-15 (a Wednesday):
- Today’s day of the week: Wednesday → getDay() = 3.
- Offset = (3 + 2) % 7 = 5 % 7 = 5.
- Last Friday = today – 5 days = 2025-01-10.
- Difference in milliseconds = (2025-01-15 – 2025-01-10) = 5 days × 86,400,000 ms = 432,000,000 ms.
- Days since last Friday = 432,000,000 / 86,400,000 = 5 days.
The calculator displays: 5 days and the date 2025-01-10 as the last Friday.
How to Use This Calculator
This tool is useful for planning weekly routines, tracking deadlines, or simply satisfying curiosity. To use it:
- Enter any date in the format YYYY-MM-DD (e.g., 2025-03-14). The default is today’s date.
- The calculator immediately shows the number of full days elapsed since the most recent Friday.
- If the date you enter is a Friday, the result is 0 days (because the last Friday is today).
- The second output shows the exact calendar date of that last Friday.
You can also use this to find how many days until the next Friday by subtracting the result from 7. For instance, if it’s 5 days since last Friday, the next Friday is in 2 days.
Why “Days Since Last Friday” Matters
People often need to know this for practical reasons:
- Payroll and billing cycles – Many companies process payroll on Fridays, so knowing the gap helps track pay periods.
- Weekly meal prep – If you shop or cook on Fridays, you might want to know how many days have passed since your last prep day.
- Project timelines – If a report is due every Friday, you can calculate how many days you have left.
- Social and religious observances – Some traditions have Friday-specific practices, and knowing the interval helps plan.
This calculation is straightforward, but doing it manually every time can be error-prone, especially when a month or year boundary is crossed. The calculator removes that risk.
Common Mistakes and Misconceptions
One common mistake is counting the current day as a full day when it isn’t. For example, if today is Wednesday and you ask “how many days since Friday?”, the correct answer is 5 (Saturday, Sunday, Monday, Tuesday, Wednesday). Some people mistakenly say 4 because they don’t count Saturday. The calculator counts full days elapsed, so it includes the day after Friday up to today, but not today if today is Friday.
Another misconception is thinking that “last Friday” means the Friday of the previous calendar week (e.g., if today is Monday, some might say last Friday was 3 days ago, but if today is Saturday, they might mistakenly think last Friday was yesterday – which is correct, but if today is Sunday, last Friday was 2 days ago, not 8 days ago). The calculator always gives the most recent Friday, even if it falls in the same calendar week.
Also, be careful with time zones and daylight saving time. The calculator uses your local time zone, so if you are near the International Date Line, the result might differ by one day from someone in another time zone. For most users, this is not an issue.
Alternatives to Manual Counting
If you don’t have this calculator handy, you can compute the days since last Friday manually:
- Determine today’s day of the week (e.g., using a calendar or your phone).
- Find the last Friday’s date (look at the previous week’s calendar).
- Count the number of days between that date and today, including the day after Friday but not today if today is Friday.
For example, if today is Tuesday, March 18, 2025, and last Friday was March 14, 2025, then days since = 4 (March 15, 16, 17, 18).
You can also use spreadsheet formulas like =TODAY()-WEEKDAY(TODAY(),3) in Excel to get the date of the last Monday, but for Friday you’d adjust the formula. The calculator here is simpler and faster.
Limitations and Edge Cases
The calculator assumes a standard Gregorian calendar and a 24-hour day. It does not account for leap seconds, which are irrelevant for day counting. It also assumes you want the most recent Friday, not the Friday of the current week if today is before Friday – but that’s exactly what “last Friday” means in common usage.
If you enter a date far in the past or future, the calculator still works, but the result may be a large number. The input range is set from 2000 to 2100, which covers most practical needs. If you need a date outside that range, you can adjust the min and max values in the calculator code, but for everyday use, this range is sufficient.
Frequently Asked Questions
Q: If today is Friday, does the calculator say 0 days since last Friday?
A: Yes, because the most recent Friday is today. The calculator returns 0 days, meaning no full days have passed since Friday. Some might expect 7 days, but that would be “since last week’s Friday,” which is not the same.
Q: How do I find out how many days until the next Friday?
A: Subtract the result from 7. For example, if the calculator says 3 days since last Friday, then the next Friday is in 4 days (7 – 3). This works because there are exactly 7 days between Fridays.
Q: Does the calculator account for leap years?
A: Yes, the Date object in JavaScript automatically handles leap years. February 29 is included correctly, so the day count is accurate across February boundaries.
Q: What if I need to count business days, excluding weekends?
A: This calculator counts all calendar days, including weekends. If you need only business days (Monday–Friday), you’d need a different tool that skips Saturdays and Sundays. That’s a separate calculation.
Q: Why does the calculator show the date of last Friday as well?
A: It’s helpful for verification and for planning. Knowing the exact date lets you cross-check with your own calendar or use it in other date calculations.
Q: Can I use this for any day of the week, not just Friday?
A: The formula is specific to Friday, but you can modify the logic for any day. For example, to find days since last Monday, you’d adjust the offset. This calculator is designed for Friday, but the principle is the same for other days.
Related
Formula used
in d | Today's date | - | 2025-01-15 | 2000-01-01 | 2100-12-31 out days | Days since last Friday | days | floor((d - (d - 3)) / 86400000) | 0 out lastfri | Last Friday was | - | d - 3 | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
- How Many Days to End of Year?
- Days Left in the Year: Count & How It Works
- How Many Days Till Valentine’s Day? Countdown
- Days Till End of Year: Countdown & How to Calculate
- Days Until End of Year: Countdown & Facts
- How Many Days Off in a Year? Typical Counts28 days