Date Format

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using the "day of the week" for back up reasons. On all the systems I
work with, I have no problem except one. In all cases (except the rogue
system), if at the Dos prompt I issue the command date /t I get the result
of the day and the date eg. Fri 04/07/2006, but on the rogue system I get
the result of date only eg. 04/06/2006 with no mention of the day of the
week. I have checked the environmental variables but can find no reason for
this difference. I might add that the rogue system acts as a Oracle
"server". I am wondering if there may be something in the Oracle setup (set
up by the software people) that is not visible to me.

Thus I am not able to use the day of the week as part of my backup procedure
on the rogue system.
 
Alan said:
I am using the "day of the week" for back up reasons. On all the systems I
work with, I have no problem except one. In all cases (except the rogue
system), if at the Dos prompt I issue the command date /t I get the result
of the day and the date eg. Fri 04/07/2006, but on the rogue system I get
the result of date only eg. 04/06/2006 with no mention of the day of the
week. I have checked the environmental variables but can find no reason for
this difference. I might add that the rogue system acts as a Oracle
"server". I am wondering if there may be something in the Oracle setup (set
up by the software people) that is not visible to me.

Thus I am not able to use the day of the week as part of my backup procedure
on the rogue system.

It's probably set somewhere in the Regional Options.
However, the overall issue is that the %date% variable
(which yields the same output as date /t) is a fragile thing
that should be avoided in robust applications. Much
better to use now.exe (Technical Resource Kit). It
generates a date/time output in a fixed format, much
like Unix-based systems.
 
I too an doing a backup using Day of the Week. Four different PCs running XP
Professional have stopped displaying the Day of the Week in DOS. I prefer
not to use now.exe but would like to find out what has changed so that now
when typing date at the dos prompt, all I see is mm/dd/yyyy instead of dow,
mm/dd/yyyy. I checked the long date format and it is set up correctly, so
how do I get these PCs back to normal and what happened?? Thanks, Paul
 
Back
Top