Search found 2 matches
- 19 Mar 2009 10:01
- Forum: DOS Batch Forum
- Topic: How to extract Day of Week
- Replies: 6
- Views: 28141
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 %...
- 04 Mar 2009 09:38
- Forum: DOS Batch Forum
- Topic: How to extract Day of Week
- Replies: 6
- Views: 28141
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]
Thx[/quote]