GNU Date lets you convert date strings like so:
$ date +"%d %m %Y" -d "yesterday"
04 01 2012
Is it possible to pipe a date string to it for conversion? I've tried the obvious
$ echo "yesterday" | date +"%d %m %Y" -d -
but it prints today's date instead of yesterdays.
Is it possible to pipe values to it or doesn't it support that?