Dates can be very simple in bash. the
date command will output the date.
Wed Jul 19 13:45:03 UTC 2017
To format the date use the following:
%m for month
%d for day
%Y for year
%H for hours
%M for minutes
%S for seconds
You precede any formatting with a plus sign and can use the above symbols to format the date any way you like.
$ date +%m-%d-%Y
If you are going to have spaces then you need to put it in quotes
$ date "+%m-%d-%Y %H:%M:%S"
Put the date in a specific time zone with
This has been a quick-n-dirty guide to dates in bash