I'm doing PHP for the first time in years. I needed a function that returns the date of last week's Monday. Turns out PHP has a funky date querying language. I can just do: $today->modify('monday last week'). Makes me happy.
The relative date formats are super useful. It can get a bit confusing when there's timezones involved though.
https://www.php.net/manual/en/datetime.formats.php#datetime....
PHP is always there for you.
[It has been (1) days since the last time that I needed strtotime]
Don't know how to do this without PHP, so I actually use it on the shell inline between a bunch of Bash. I assume that's the same function with new syntactic sugar