<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sardine</author_name>
  <author_url>https://blog.hatena.ne.jp/sardine/</author_url>
  <blog_title>toyfish.blog</blog_title>
  <blog_url>https://www.toyfish.blog/</blog_url>
  <categories>
    <anon>prog</anon>
  </categories>
  <description>単純に考えると、 nMonths = DateDiff(&quot;m&quot;, dtm1, dtm2) と書けばよさそうだが、これで求まる月数って? 例えば、 dtm1 = #2004/01/31# dtm2 = #2004/02/01# の場合、0 ヶ月? 1 ヶ月? それとも 2 ヶ月? 手元で試してみた結果では nMonths = 1 になった。他にもいくつかのパターンでやってみたが、「年月部分だけを見て、単純に引き算した結果」ということのようだ。 しかし、その根拠となる文章がヘルプにもない。唯一近いのは 12 月 31 日とその次の年の 1 月 1 日を比較すると、DateDiff 関数の年 (&quot;y…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.toyfish.blog%2Fentry%2F20040130%2Fp1&quot; title=&quot; VB/VBA での月数計算 - toyfish.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>2004-01-30 00:00:00</published>
  <title> VB/VBA での月数計算</title>
  <type>rich</type>
  <url>https://www.toyfish.blog/entry/20040130/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
