Dark Launch

Bash date timestamp format

Create a timestamp in bash using the date command invoked with a format string.

Bash
$ date "+%Y-%m-%d %H:%M:%S"
2016-03-31 10:10:31
Bash
$ echo "$(date "+%Y-%m-%d %H:%M:%S")"
2016-03-31 10:10:31