DATE + Displaying the Current DateDisplays the current system date; allows you to enter a new
date.
VERSION
PC-DOS 2.0+ (revised from 1.1; revised again in PC-DOS
3.3)
MS-DOS equivalent: DATE (2.0+)
TYPE
Internal
SYNTAX
DATE [mm-dd-yy]
or
DATE [mmyy]
or
DATE [yy-mm-dd]
DATE allows you to reset the system date to the current date
or obtain the current date from the system clock.
EXAMPLES
DATE 1-1-88
sets the system date to Fri 1-01-1988. You may separate day,
month, and year with hyphens (-), slashes (/), or periods (.).
You do not need to type leading zeros.
DATE
returns the current date and prompts you for a new one.
MESSAGE
Invalid date
The date you entered used an invalid format. Check your entry
and try again.
UNDO
To reset the date, type
DATE
and enter the current date in one of the allowable formats.
NOTE
In version 3.3 of PC-DOS, if your computer has an internal
clock, the DATE command also resets it. (This is the inverse of
previous versions.) You can include the DATE command in an
AUTOEXEC.BAT file so that you are not prompted for the date when
you boot DOS. If there is no clock that DOS can read, the prompts
still come up. To change the date format, create a CONFIG.SYS
file that includes the COUNTRY command.
------------------------------------------------------------------
[For related topics, press R]
SEE ALSO
Batch Files
CONFIG.SYS File
TIME Command
file: /Techref/DOS/command/date.htm, 1KB, , updated: 1999/2/20 10:24, local time: 2024/11/25 10:59,
18.218.75.58:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/techref/DOS/command/date.htm"> DOS command date</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232! |
.