Command Prompt for Windows




Command DATE

Function:

Displays or sets the date.

Syntax:

DATE [date]
dateSpecified according to the international format.

Note:

Type DATE without any parameters to display the current date setting, formatted according to the international setting in the Control Panel.

Parameter date is also specified according to the international format set in the Control Panel. For example, the USA date format is typically mm-dd-yyyy and the Australian date format is typically dd-mm-yyyy.

Also see command TIME.