Getting yesterday's or tommorrow's date
It is often necessary to work out yesterdays or tommorrows dates in scripts. Here's an easy way to do it.
#!/bin/sh Yesterday=`TZ=PST+24 date +%D` echo "Yesterday is:" $Yesterday Tomorrow=`TZ=PST-24 date +%D` echo "Tomorrow is: " $Tomorrow Today=`date +%D` echo "Today is:" $Today
Still stuck? Maybe we can help. Contact us here
For more super cool techie stuff check out our blog!!