<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akuraru</author_name>
  <author_url>https://blog.hatena.ne.jp/akuraru/</author_url>
  <blog_title>いつもあさって</blog_title>
  <blog_url>https://akuraru.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>日付を文字列にしたいと思うことはよくあると思うので、オススメを書いておこうと思います。 はじめに 日付を文字列にする場合は2種類の変換の仕方があります。それは、 日付型に戻せる文字列 日付型に戻せない文字列 です。この二つを混ぜて扱うとすぐに死に目を見ることになるので、くれぐれもきをつけましょう。 日付型に戻せる文字列 日付型に戻せる文字列は、主にファイルに書き出すときやAPIで通信するときに用います。どのプログラミング言語でも戻せる文字列で扱うのが良いです。具体的には、ISO8601 (例: 2004-04-01T12:00:00Z) や Unix time(例: 1713225605) で…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakuraru.hatenadiary.jp%2Fentry%2F2024%2F04%2F19%2F033708&quot; title=&quot;日付を文字列にするときのオススメ - いつもあさって&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>2024-04-19 03:37:08</published>
  <title>日付を文字列にするときのオススメ</title>
  <type>rich</type>
  <url>https://akuraru.hatenadiary.jp/entry/2024/04/19/033708</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
