Wednesday, September 12

Internal Commands

Displaying and changing system Date
Date
Date command displays the current system date and allows you to change the date.
Syntax
DATE [current date]
where,
current date : optional date entered in the format mm-dd-yy.
where,
mm : month (1 to 12)
dd  : day (1 to 31)
yy  :  year (80-79 or 1980-2079)
The month,day and year entries may be separated by a hyphen (-) or slash (/).
The year can be entered in two digits (i.e. 96) or four digits from (i.e. 1996).
Example 1
C:\>DATE
It displays the current date and prompts you to enter new data.
To change to the new date type desired date, and press enter key.
If you do not want to change the date press enter key.

Example 2
C:\> DATE10-16-96 and then pres enter key.
It changes the date to October 16, 1996
Example 3
C:\>DATE 10-16-1996 and then press enter key.
It also changes the date to October 16-,1996


No comments:

Post a Comment