"date /t" display order changed by using scheduled task

G

Guest

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
 
K

Kerem Gümrükcü

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ü
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top