<?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>TypeScript</anon>
    <anon>JavaScript</anon>
    <anon>Tips</anon>
  </categories>
  <description>Moment.js くんが卒業してからフロントエンドでの日付操作には day.js か date-fns を使っていました。 今回年・月・日が別々の select ボックスで日付を選択する UI があり 2月31日のような存在しない日付が選べてしまうので、存在しない日付を判定しようとして思ったより根が深かったのでメモ。 day.js, date-fns には存在しない日付を判定するメソッドがなかった Moment.js くんの moment('DATE'). isValid() は存在しない日付をチェックできたのですが、day.js, date-fns の日付チェックのメソッドは完全に存在しな…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2021%2F12%2F12%2F121200&quot; title=&quot;JavaScript day.js, date-fns で実在する日付かどうか判定したい - かもメモ&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>https://m.media-amazon.com/images/I/61C0CBeQECL._SL500_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-12-12 12:12:00</published>
  <title>JavaScript day.js, date-fns で実在する日付かどうか判定したい</title>
  <type>rich</type>
  <url>https://chaika.hatenablog.com/entry/2021/12/12/121200</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
