<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kikiki-kiki</author_name>
  <author_url>https://blog.hatena.ne.jp/kikiki-kiki/</author_url>
  <blog_title>かもメモ</blog_title>
  <blog_url>https://chaika.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>PHPでnヶ月後の月末を取得したい場合、(n+1)ヶ月後の1日を取得して1日引けばOKというのをよく見かけるので、1年後なら13ヶ月後の1日を取得して...と思いコードを書いていました。 &lt;?php // 今日の日付 $today = $date(); // 13ヶ月後の日付 $after13m = strtotime('+13 month', strtotime($today)); $year = date('Y', $after13m); $month = date('m', $after13m); // 13ヶ月後の1日 $firstDate = $year . '-' . $month…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2015%2F03%2F31%2F174404&quot; title=&quot;PHP 1年後の今月末を知りたいにハマる。 - かもメモ&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>http://ecx.images-amazon.com/images/I/61VDpiawamL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-03-31 17:44:04</published>
  <title>PHP 1年後の今月末を知りたいにハマる。</title>
  <type>rich</type>
  <url>https://chaika.hatenablog.com/entry/2015/03/31/174404</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
