<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sh_yoshida</author_name>
  <author_url>https://blog.hatena.ne.jp/sh_yoshida/</author_url>
  <blog_title>1.21 jigowatts</blog_title>
  <blog_url>https://sh-yoshida.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>バッチ</anon>
  </categories>
  <description>概要 バッチ処理で現在日付をファイル名に付与したい！ そんな時は以下のように切り取ることで好きなフォーマットに加工することができるので、ファイル名に使ったり、ログに出力したりすることができます。 &gt;echo %date% 2015/01/26 &gt;echo %date:~-10,4%%date:~-5,2%%date:~-2,2% 20150126 &gt;echo %time:~-11,2%%time:~-8,2%%time:~-5,2% 161339 ですが、ローカル環境でテストしていざサーバで実行するとむちゃくちゃになることがあります。 &gt;echo %date% Mon 01/26/2015 &gt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsh-yoshida.hatenablog.com%2Fentry%2F2015%2F01%2F26%2F194834&quot; title=&quot;Windowsバッチ処理で日付を取得するときロケールに影響されたくない - 1.21 jigowatts&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>2015-01-26 19:48:34</published>
  <title>Windowsバッチ処理で日付を取得するときロケールに影響されたくない</title>
  <type>rich</type>
  <url>https://sh-yoshida.hatenablog.com/entry/2015/01/26/194834</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
