date format for linux shell scripts

#echo "starting script at" $(date +"%Y-%m-%d %H:%M:%S") "..."

starting publish script at 2012-10-01 15:52:14 …

see: linux-unix-formatting-dates-for-display

Leave a Reply