1 day ago from today is 19 May 2024, a Sunday. 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 Monday, we'll need to account for a full week before hitting weekend days. – I generally backtrack using the days of the week for quick reference. Additionally, we’ll need to consider that with 20 days until the end of May, being in the middle of of the month means that 1 day ago will keep us in May 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 Sunday May 19, 2024 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 Sunday May 19, 2024 date.
Work day Solution
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
1 day back
Sunday
May 19
Counting back from today is Sunday May 19, 2024 using a full calendar, and is also 24 hours ago and 38.36% of the year.
Sunday Sunday May 19, 2024 was the 140 day of the year. At that time, it was 38.36% through 2024.