On this page you find all important commands for the CLI tool date. If the
command you are looking for is missing please ask our AI.
date
date - print or set the system date and time
List of commands for date:
-
date:show:default Displays the current server date in UTC timezone$ date -u +"%Y-%m-%d %H:%M:%S"try on your machineexplain this command
-
date:tldr:249fd date: Display the current date using the default locale's format.$ date +%ctry on your machineexplain this command
-
date:tldr:284c4 date: Display the current date in UTC, using the ISO 8601 format.$ date -u +%Y-%m-%dT%H:%M:%S%Ztry on your machineexplain this command
-
date:tldr:31078 date: Display the current ISO week number.$ date +%Vtry on your machineexplain this command
-
date:tldr:55615 date: Convert a date specified as a Unix timestamp to the default format.$ date -d @${1473305798}try on your machineexplain this command
-
date:tldr:5fc73 date: Display the current system date and prompt to enter a new date (leave empty to keep unchanged).$ datetry on your machineexplain this command
-
date:tldr:96b8f date: Set the current date using the format `MMDDhhmmYYYY.ss` (`YYYY` and `.ss` are optional).$ date ${093023592021-59}try on your machineexplain this command
-
date:tldr:9c1f1 date: Change the current system date to a specific date.$ date ${month}-${day}-${year}try on your machineexplain this command
-
date:tldr:acd92 date: Display the current date in UTC and ISO 8601 format.$ date -u +%Y-%m-%dT%H:%M:%SZtry on your machineexplain this command
-
date:tldr:db5bb date: Display the current system date without prompting for a new date.$ date /ttry on your machineexplain this command
-
date:tldr:e9668 date: Display a specific date (represented as a Unix timestamp) using the default format.$ date -r 1473305798try on your machineexplain this command
-
date:tldr:f3ffc date: Display the current date using the RFC-3339 format (`YYYY-MM-DD hh:mm:ss TZ`).$ date --rfc-3339=stry on your machineexplain this command
-
date:tldr:f9bed date: Display the current date as a Unix timestamp (seconds since the Unix epoch).$ date +%stry on your machineexplain this command
-
date:tldr:fcd8e date: Convert a given date to the Unix timestamp format.$ date -d "${2018-09-01 00:00}" +%s --utctry on your machineexplain this command
-
system:date:set Sets the system date and time to the specified value. Format: yy-mm-dd hh:ii:ss.$ date -s '${year}-${month}-${day} ${hour}:${minute}:${second}'try on your machineexplain this command