<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>duplicate1984</author_name>
  <author_url>https://blog.hatena.ne.jp/duplicate1984/</author_url>
  <blog_title>duplicate</blog_title>
  <blog_url>https://duplicate1984.hateblo.jp/</blog_url>
  <categories>
    <anon>Batch</anon>
    <anon>Batch</anon>
  </categories>
  <description>バッチで曜日を取得できるんだなあ、すごいなあ 取得といってもなんか計算して、結果に曜日を割り振ってる、って感じだけど。 とりあえず以下。 流れ的には、 1. DATEで日付を取得。取得した日付には&quot;/&quot;とかが入っちゃってるので、yy, mm, ddで年月日を切り分ける。 2. 計算用に日付をさらに分解。 3. ツェラーの公式を使って計算し、計算結果に応じて曜日をsetする。 これをまるごとバッチの中に組めば、実行環境の当日日付の曜日を取得できる。 上の例ではWEEKって変数に曜日が入っているので、 こんな構成でやれば曜日を好きなようにできる。 DATEコマンドの代わりに set /P GETD…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fduplicate1984.hateblo.jp%2Fentry%2F2017%2F10%2F27%2F001857&quot; title=&quot; オラァ！バッチを書けオラァ！　任意の日付の曜日を取得 - duplicate&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-10-27 00:18:57</published>
  <title> オラァ！バッチを書けオラァ！　任意の日付の曜日を取得</title>
  <type>rich</type>
  <url>https://duplicate1984.hateblo.jp/entry/2017/10/27/001857</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
