Zet - How to getdate in YYYY-MM-DD format in bash?

How to getdate in YYYY-MM-DD format in bash?

echo $(date '+%Y-%m-%d')

#bash