Thanks, this works perfectly. I had to transpose the month and day
variables, though. I have the perl solution almost finished, thanks to
Jeremy's help, so I think I will use this solution if I can't get the perl
one to work.

I would prefer to use perl because there has been talk of converting our
webservers to Linux and the perl script will port over with only minor
changes.

But thanks anyway for this little tidbit. Maybe I can use this elsewhere!

> I know you have had a lot of answers on this one, but you CAN do it with
> batch files...
>
> @echo off
> for /F "tokens=1,2" %%d in ('date /T') do set day=%%d & set date=%%e
> set yyyy=%DATE:~6,4%
> set mm=%DATE:~3,2%
> set dd=%DATE:~0,2%
> set dateserial=%yyyy%%mm%%dd%
>
> will create the dateserial environment variable as 20010109 today. It is
a
> fairly simple matter to adjust this to most formats, but I think that is
> what you wanted, without resorting to Perl.
>
> Cheers
>
> Simon West


------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------

Reply via email to