Re: Date Format




"Alan" <Alan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B7B85303-960B-4BDC-985A-592E81FE1563@xxxxxxxxxxxxxxxx
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.


.



Relevant Pages

  • Re: SETENV Command
    ... I did give this command ... again to set the env variables. ... >> could not set the environmental variables when i ... > The default shell in Fedora is bash, ...
    (Fedora)
  • Re: Where is $(VCInstallDir) defined ?
    ... I see many environmental variables like: ... executing "SET" command at Visual Studio command ... registry key: that's likely where the value of $comes ... Go to View | Other Windows | Command window. ...
    (microsoft.public.vc.language)
  • Re: SETing environmental variables permantly
    ... | That's not via the command line, ... Anything you would do would be a daughter process and all child processes would inherit the ... Environmental variables but the parent process won't. ...
    (microsoft.public.windowsxp.general)
  • Re: Server 2003 DOS prompt time problem
    ... Hmm - go to System Properties/Advanced tab - Environmental Variables. ... Doug Sherman ... I have a strange problem when using the TIME function in the DOS prompt ...
    (microsoft.public.windows.server.general)
  • Re: help adding to environmental variables
    ... The Variable Name is not a personal name, but the command, as in set or path ... or temp... ... Try typing mode in the Variable Name field and com1:9600,n,1 in the ... > Environmental Variables. ...
    (microsoft.public.win2000.general)