Template:Previous weekday

From Geohashing

2022-08-12

Usage

For use when calculating what date to use when Dow holidays occur.

  • If date passed is Tuesday - Friday, returns the previous day.
  • If date passed is Saturday - Monday, returns the previous Friday.