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\"`
Convert to timestamp (a long integer), subtract the right number of milliseconds, reformat to the format you need.
Hard to give more details since you don't specify a programming language...