Microsoft brain-damage of the day
Ted Roche
tedroche at tedroche.com
Thu Nov 30 08:32:42 EST 2006
On Nov 29, 2006, at 10:45 PM, Kjel Anderson wrote:
> Is that the new Powershell syntax? That is god-awful. Wow. Makes
> perl look pretty.
>
> Kjel
Yeah, that's classic DOS/CMD. If you want YYYY-MM-DD, it's as simple as
FOR /F "tokens=2-4 delims=/ " %%i IN ('date /t') DO SET DATE=%%k-%%i-%%j
I use it all the time when making dated files.
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com
More information about the gnhlug-discuss
mailing list