EasyManua.ls Logo

Commodore PC - Date

Commodore PC
414 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
44
MS-DOS
User's
Reference
U
Date
Date
I
Purpose:
[^J
Enters
or
changes
the
date
known
to
the
system.
Syntax:
\^_J
date
[mm-dd-yy]
Comments:
\^_J
You
can
change
the date
from
your
terminal
or
from
a
batch
file.
(ms-dos
does
not
automatically
display
a
prompt
for
the
date
if
you
use
an
autoexec,
bat
file,
so
you
may
want
to
include
a
date
^J
command
in
that
file.)
ms-dos
records
this
date
in
the
directory
when
you
create
or
change
a
file.
Remember
to
use
only
numbers
when
you
type
the
date;
allowed
\^J
numbers
are:
mm
=
1-12
i )
dd
=
1-31
yy
=
80-99
or
1980-2099
u
The
date,
month,
and
year
entries
may
be
separated
by
hyphens
(-)
or
slashes
(/).
ms-dos
is
programmed
to
change
months
and
years
correctly,
whether
the
month
has
31, 30,
or
28
days
or
^J
29
days,
since
ms-dos
handles
leap
years, too.
It is
possible
for
you
to
change
the
mm-dd-yy
format
in
which
the
date
is
displayed
and
entered.
The
country
command
in
the
[^_J
config.sys
file
allows
you
to
change
the
date
format
to
the
Euro
pean
standard
dd-mm-yy.
For
more
information
on
the
config.sys
file,
see
Appendix
B,
"How
to
Configure
Your
System."
i
J
Examples:
I
Displaying the
current
If
you
simply
type
the
date
command,
ms-dos
displays
the
follow-
i
j
date
ing
message:
^^
Current
date
is
weekday
mm-dd-yy
Enter
new
date
(mm-dd-yy):_
K^J
\
If
you
do
not
want
to
change
the
date
shown,
press
the
return
key.
Or
you
can
type
a
particular
date
after
the
date
command,
as
\^J
in
the
following
example:
date
3-9-86
,
j
In
this
case
the
"Enter
new
date:"
prompt
does
not
appear
after
you
press
return.
/
■-.

Related product manuals