Format ISO-8601 date string with unix date utility

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

Mucked around trying to get this right before realising I'd left out the + symbol in the format string. Derp.

Discuss...