The date command is to display the current time in the given FORMAT or set the system date.
$ date +%s
$ date --iso-8601="seconds"
$ date '+%Y%m%d'