2 days ago from today is 17 May 2024, a Friday. Calculating a short time span like 2 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 Sunday, the calculation could get a bit more complicated if you want to account for business days becuase it's the weekend. – I generally backtrack using the days of the week for quick reference. Additionally, we’ll need to consider that with 19 days until the end of May, being in the middle of of the month means that 2 days 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 2 days ago gets calculated on each visit:
2 days is Friday May 17, 2024 or could be if you only want workdays. This calculation takes 2 days and only subtracts by the number of workdays in a week. Remember, removing the weekend from our calculation will drastically change our original Friday May 17, 2024 date.
Work days Solution
Monday
Tuesday
Wednesday
Thursday
2 days back
Friday
May 17
Saturday
Sunday
Counting back from today is Friday May 17, 2024 using a full calendar, and is also 48 hours ago and 37.81% of the year.
Friday Friday May 17, 2024 was the 138 day of the year. At that time, it was 37.81% through 2024.