I'm trying to use the date
bash command to get a string like this:
(May 30th, 2022)
I'm getting close with date +"(%B %-d, %Y)"
, which prints string like that:
(May 30, 2022)
However, the th
suffix is missing.
Which format string should I use with date
to get the st
, nd
or th
suffix, please?
Thanks in advance!