command line date format

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

Guest

I'm using the date /t command in a batch process. PCs have XP Pro with
regional setting of English New Zealand and the same config.nt and
autoexec.nt. One PC returns the date without the day of the week element.
What could cause this?
 
mark_d_holm said:
I'm using the date /t command in a batch process. PCs have XP Pro with
regional setting of English New Zealand and the same config.nt and
autoexec.nt. One PC returns the date without the day of the week element.
What could cause this?

Neither autoexec.nt nor config.nt play a role in the
data format but the Regional Settings in the Control
Panel do. And rather than using the command date /t,
consider using the variable %date%.
 
Pegasus (MVP) said:
Neither autoexec.nt nor config.nt play a role in the
data format but the Regional Settings in the Control
Panel do. And rather than using the command date /t,
consider using the variable %date%.
Thanks for the tip. Unfortunately it did not fix the problem.
On PC #1 date /t and %date% both return Tue 10/10/2006
On PC #2 both return 10/10/2006
The Regional Settings are identical 'English (New Zealand) - US' except that
PC #1 has the Handwriting Recognition elements installed (Language tab and
Details)
Any ideas?
 
mark_d_holm said:
Thanks for the tip. Unfortunately it did not fix the problem.
On PC #1 date /t and %date% both return Tue 10/10/2006
On PC #2 both return 10/10/2006
The Regional Settings are identical 'English (New Zealand) - US' except that
PC #1 has the Handwriting Recognition elements installed (Language tab and
Details)
Any ideas?

You need to dig a little deeper in your Regional Settings.
Have a look at the place where the date, time and number
formats are defined!
 

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

Back
Top