<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nakani1210</author_name>
  <author_url>https://blog.hatena.ne.jp/nakani1210/</author_url>
  <blog_title>nakanilog</blog_title>
  <blog_url>https://nakani1210.hatenablog.com/</blog_url>
  <categories>
    <anon>Windows</anon>
  </categories>
  <description>バッチファイル内で日付、日時を取得するには以下の通りに記述する。 ＜バッチファイル＞ @echo offrem 現在日付（YYYYMMDD）の取得set date_str=%date:~-10,4%%date:~-5,2%%date:~-2,2%echo %date_str% ←確認 rem 現在時刻（HHMMSS）の取得set time_str=%time: =0%set time_str=%time_str:~0,2%%time_str:~3,2%%time_str:~6,2%echo %time_str% ←確認 ＜実行結果＞ C:\&gt; datestr.bat20171006123456…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnakani1210.hatenablog.com%2Fentry%2F2017%2F10%2F06%2F144010&quot; title=&quot;バッチファイル内で日時文字列（YYYYMMDD、HHMMSS）を取得する - nakanilog&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-06 14:40:10</published>
  <title>バッチファイル内で日時文字列（YYYYMMDD、HHMMSS）を取得する</title>
  <type>rich</type>
  <url>https://nakani1210.hatenablog.com/entry/2017/10/06/144010</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
