View Full Version : "date /t" display order changed by using scheduled task


Debbie
01-14-2006, 12:32 PM
One of Windows Server 2003 in my test lab met a problem:
Run "date /t" under a console window, the output is:
"01/14/2006 Sat"
But, once I wrote a batch file with the same command line "call date /t",
the output changed to:
"Sat 01/14/2006"
What is wrong in this server? One thing I know is, in Winodows 2000, the
output should be "Sat 01/14/2006", but, why it occured while Windows 2003
scheduled task running?

Thanks in advance!

-Debbie

Kerem Gümrükcü
02-24-2006, 01:21 AM
Hi Debbie,

the date.exe produces a fixed output depending on the locales and OS
version.
But it is no match to programm the same application in C or C++ or whatever
programming language you want. If you are not a programmer, you can easilly,
write a script in VBS or JS or whatever language you want, to get the date
or
time in the format you want. You can write a simple sript and return its
result
to stdout.

Best Regards

Kerem Gümrükcü




"Debbie" <Debbie@discussions.microsoft.com> schrieb im Newsbeitrag
news:5C4C7DB6-3B98-4DA6-BB67-0C924CE33C95@microsoft.com...
> One of Windows Server 2003 in my test lab met a problem:
> Run "date /t" under a console window, the output is:
> "01/14/2006 Sat"
> But, once I wrote a batch file with the same command line "call date /t",
> the output changed to:
> "Sat 01/14/2006"
> What is wrong in this server? One thing I know is, in Winodows 2000, the
> output should be "Sat 01/14/2006", but, why it occured while Windows 2003
> scheduled task running?
>
> Thanks in advance!
>
> -Debbie