YYYY-MM-DD format date in shell script
Asked 07 September, 2021
Viewed 1.7K times
  • 62
Votes

I tried using $(date) in my bash shell script, however, I want the date in YYYY-MM-DD format.
How do I get this?

14 Answer