{"id":465,"date":"2021-09-03T20:01:08","date_gmt":"2021-09-03T20:01:08","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/windows-xp-day-of-week-in-command-prompt-143503-html-2"},"modified":"2021-09-03T20:01:08","modified_gmt":"2021-09-03T20:01:08","slug":"windows-xp-day-of-week-in-command-prompt-143503-html-2","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/windows-xp\/day-of-week-in-command-prompt\/143503.html","title":{"rendered":"Solved Day of week in command prompt"},"content":{"rendered":"<td>\n<p>I am trying to find out the day of the week using a batch file in the command prompt.  the date \/t command just displays the date 07\/11\/2005.<\/p>\n<p>Does anyone know any way I can find out the day (whether its Mon-Sun)?<\/p>\n<p>Thanks<\/p>\n<\/td>\n<td>\n<p>Hi IVO,<\/p>\n<p>You&#8217;re the man.<\/p>\n<p>And you&#8217;re correct about the verbage.<\/p>\n<p>Note that this bat sets the var DOW and depends only on skipping the correct number of chars, in this case 16.<\/p>\n<p>:: setDOW.bat<br \/>@echo off<\/p>\n<p>Echo.|Command \/C Date&gt;DOW<br \/>set \/p today=&lt;DOW<br \/>set DOW=%today:~16,3%<br \/>echo DOW=%DOW%<br \/>:: DONE<\/p>\n<p>An inquiring mind might wonder why command.com transposes MM &#038; DD.<\/p>\n<p>But hey, IT&#8217;S WINDERS.<\/p>\n<p><font color=\"blue\"><br \/><font size=\"3\" color=\"blue\">If at first you don&#8217;t succeed, you&#8217;re about average.<\/p>\n<p>M2<\/p>\n<p><\/font><\/font><\/p>\n<\/p>\n<\/td>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","meta":{"inline_featured_image":false,"iawp_total_views":40},"question-category":[],"question_tags":[],"class_list":["post-465","question","type-question","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=465"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=465"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=465"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}