1 day ago from today is 06 Feb 2025, a Thursday. Calculating a short time span like 1 days in the past is typically straightforward. For periods under a week, it's a matter of simple backward counting, often doable with just the days of the week. Since today is Friday, well need to account for the weekend if you care about work days. If not, the calculation will remain the same. – I generally backtrack using the days of the week for quick reference. Additionally, we’ll need to consider that with 7 days until the end of February, being in the early part of of the month means that 1 day ago will keep us in February and we don’t need to worry about adjusting months or years.
All of our day calculators are measured and QA'd by our engineer. Read more about the Git process here. But here's how 1 day ago gets calculated on each visit:
1 day is Thursday February 06, 2025 or could be if you only want workdays. This calculation takes 1 day and only subtracts by the number of workdays in a week. Remember, removing the weekend from our calculation will drastically change our original Thursday February 06, 2025 date.
Work day Solution
Monday
Tuesday
Wednesday
1 day back
Thursday
February 06
Friday
Saturday
Sunday
Counting back from today is Thursday February 06, 2025 using a full calendar, and is also 24 hours ago and 10.14% of the year.
Thursday Thursday February 06, 2025 was the 037 day of the year. At that time, it was 10.14% through 2025.