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

To contact me, send an email anytime or leave a comment below.