HxHippy

date

Print or set the system date and time

Overview

Displays the current time in the given FORMAT, or sets the system date.

Syntax

date [OPTION]... [+FORMAT]

Examples

$ date

Display the current date and time.

$ date +%Y-%m-%d

Display the date in YYYY-MM-DD format.

datetimesystemclocksetdisplay