<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>XxGodmoonxX</author_name>
  <author_url>https://blog.hatena.ne.jp/XxGodmoonxX/</author_url>
  <blog_title>青いやつの進捗日記。</blog_title>
  <blog_url>https://tech.motoki-watanabe.net/</blog_url>
  <categories>
    <anon>Date</anon>
    <anon>date-fns</anon>
  </categories>
  <description>まず、正規表現でreplaceします。 lab.syncer.jp 数字以外を/にした上で最後の1文字（日が/になっている）をとります。 '2020年11月14日'.replace(/[^0-9]/g, '/').slice(0, -1) これで返ってくるのが2020/11/14です。 これをformattedDateとかに入れておくとしましょう。 次、Date型に変換します。 web.plus-idea.net formattedDate = Date.parse(formattedDate) これでDate型になったものがformattedDateに入りました。 次にdate-fnsという…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.motoki-watanabe.net%2Fentry%2F2020%2F11%2F15%2F093952&quot; title=&quot;日付をstringで〜年〜月〜日でもらい、それを良い感じにDate型にして、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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-11-15 09:39:52</published>
  <title>日付をstringで〜年〜月〜日でもらい、それを良い感じにDate型にして、date-fnsでその日を過ぎたか判定</title>
  <type>rich</type>
  <url>https://tech.motoki-watanabe.net/entry/2020/11/15/093952</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
