I have the following in a shell script. How can I subtract one hour while retaining the formatting?
DATE=`date \"+%m/%d/%Y -%H:%M:%S\"`
If you need change timezone before subtraction with new format too:
$(TZ=US/Eastern date -d '1 hour ago' '+%Y-%m-%d %H:%M')