date Command Examples

Set or display the system date. More information: https://www.gnu.org/software/coreutils/manual/html_node/date-invocation.html.

date +%c

date {{[-u|--utc]}} +%Y-%m-%dT%H:%M:%S%Z

date +%s

date {{[-d|--date]}} @{{1473305798}}

date {{[-d|--date]}} "{{2018-09-01 00:00}}" +%s {{[-u|--utc]}}

date --rfc-3339 s

date {{093023592021.59}}

date +%V