<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>e-tamae</author_name>
  <author_url>https://blog.hatena.ne.jp/e-tamae/</author_url>
  <blog_title>いたまえ Blog</blog_title>
  <blog_url>https://e-tamae.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>まずコマンドプロンプトを立ち上げる。 (ショートカット)windowsキー＋R cmdと入力してEnter 本日の日付を表示するには、以下のコマンドを入力する。 echo %date% ※結果※ 2006/08/22 次に昨日の日付を取得したいのだが、残念ながらwindowsコマンドには該当するコマンドが用意されていない。 そこで強引ではあるが、数値計算によって昨日日付を取得する。 まず、日にちの部分を取得する。 set today=%date:~8,2% 上記コマンドは、dateコマンドで取得できる文字列&quot;2006/08/22&quot;のインデックスが8の文字から2文字分をtodayという変数に代入…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fe-tamae.hatenadiary.org%2Fentry%2F20060822%2F1156339182&quot; title=&quot;昨日の日付を取得するコマンド(windows) - いたまえ Blog&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>2006-08-22 22:19:42</published>
  <title>昨日の日付を取得するコマンド(windows)</title>
  <type>rich</type>
  <url>https://e-tamae.hatenadiary.org/entry/20060822/1156339182</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
