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


_______________________________________________
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/

Reply via email to