date
Linux · System · available in the simulator
What it does
Display or set the system date and time.
Syntax
date [opciones] [+formato]
Options and parameters
-sSet time described by STRING; requires privileges.
-uPrint or set Coordinated Universal Time (UTC).
+FORMATOOutput date formatted according to FORMAT.
date +%Y-%m-%d-dDisplay time described by STRING, not 'now'.
date -d "tomorrow"-ROutput date and time in RFC 5322 format.
Usage examples
datedate +%Y-%m-%dsudo date -s '2026-06-01 10:00'date '+%Y-%m-%d %H:%M:%S'date -d "tomorrow"