Linux Date: Suppress Zeros in Formatting

Linux date command can not just print the current date

> date
Tue Jan 11 16:52:33 GMT 2022

but also format it which is really cool - you just put + and follow with date format like:

> date +%Y-%m-%d

If you need to remove zeros, use - i.e.

date +%Y-%-m-%-d

Have a question⁉ Contact me.