{"type":"rich","provider_name":"Hatena Blog","title":"JavaScript 2000\u5e74\u4ee5\u964d\u306eYYMMDD\u5f62\u5f0f\u306e\u6587\u5b57\u5217\u3092\u65e5\u4ed8\u578b\u306b\u5909\u63db\u3059\u308b","categories":["JavaScript"],"version":"1.0","author_url":"https://blog.hatena.ne.jp/potisan/","author_name":"potisan","blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","url":"https://potisan-programming-memo.hatenablog.jp/entry/2021/09/06/010101","blog_url":"https://potisan-programming-memo.hatenablog.jp/","image_url":null,"provider_url":"https://hatena.blog","description":"2000\u5e74\u4ee5\u964d\u306eYYMMDD\u5f62\u5f0f\u306e\u6587\u5b57\u5217\u3092\u65e5\u4ed8\u578b\uff08Date\uff09\u306b\u5909\u63db\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\u3002 function dateFrom20YYMMDD(s) { if (typeof s != \"string\") return undefined; const m = s.match(/^(\\d\\d)(\\d\\d)(\\d\\d)$/) if (m == null) return undefined; const Y = parseInt(m[1]); const M = parseInt(m[2]); const D = parseInt(m[3]); return new Date(2000+Y, M,\u2026","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2021%2F09%2F06%2F010101\" title=\"JavaScript 2000\u5e74\u4ee5\u964d\u306eYYMMDD\u5f62\u5f0f\u306e\u6587\u5b57\u5217\u3092\u65e5\u4ed8\u578b\u306b\u5909\u63db\u3059\u308b - potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","published":"2021-09-06 01:01:01"}