<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kamimura-dev</author_name>
  <author_url>https://blog.hatena.ne.jp/kamimura-dev/</author_url>
  <blog_title>hiro08gh</blog_title>
  <blog_url>https://code-log.hatenablog.com/</blog_url>
  <categories>
    <anon>フロントエンド</anon>
  </categories>
  <description>こんにちはhiro08です。Day.jsで本日の日付から月末までの日数を知りたい機会がありました。結論としてはDay.jsに内包されているdiffを使えば簡単に割り出すことができたのでご紹介します。 const dayjs = require(&quot;dayjs&quot;); const today = dayjs().format(&quot;YYYY-MM-DD&quot;); //今日の日付を取得 2021-06-12 const monthEnd = dayjs().endOf(&quot;month&quot;).format(&quot;YYYY-MM-DD&quot;); //今月末を取得 2021-06-30 console.log(dayjs(mo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcode-log.hatenablog.com%2Fentry%2F2021%2F06%2F12%2F190154&quot; title=&quot;Day.jsで月末までの日数を割り出す方法 - hiro08gh&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>2021-06-12 19:01:54</published>
  <title>Day.jsで月末までの日数を割り出す方法</title>
  <type>rich</type>
  <url>https://code-log.hatenablog.com/entry/2021/06/12/190154</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
