Search found 2 matches

by swgivens
19 Mar 2009 10:01
Forum: DOS Batch Forum
Topic: How to extract Day of Week
Replies: 6
Views: 28122

Thanks for the info. Much more elaborate than the simple approach I ended up taking: set day=%DATE:~0,3% IF %day% == Mon set dayofweek=Monday IF %day% == Tue set dayofweek=Tuesday IF %day% == Wed set dayofweek=Wednesday IF %day% == Thu set dayofweek=Thursday IF %day% == Fri set dayofweek=Friday IF %...
by swgivens
04 Mar 2009 09:38
Forum: DOS Batch Forum
Topic: How to extract Day of Week
Replies: 6
Views: 28122

How to extract Day of Week

I suppose I'm missing something really obvious, but I can't find much on date formats. I need to determine the day of the week from %DATE% and set a variable to format such as MONDAY, TUESDAY, etc. Note that I also need the day in caps.

Thx[/quote]