date -f tells it to do the same thing as -d except for every line in a file... you can set the filename to - to make it read from standard input.
-f
-d
-
echo "yesterday" | date +"%d %m %Y" -f -
Yes.
echo "yesterday" | xargs date +"%d %m %Y" -d
You can use `command` or $(command) substitution:
`command`
$(command)
date +"%d %m %Y" -d $(echo "yesterday")