<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xin9le</author_name>
  <author_url>https://blog.hatena.ne.jp/xin9le/</author_url>
  <blog_title>xin9le.net</blog_title>
  <blog_url>https://xin9le.hatenablog.jp/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>Tips</anon>
  </categories>
  <description>ちょっとした Tips というか「あれ？」となったので備忘録としてメモします。 ひと言まとめ 元年表記したければ y と 年 をくっ付けろ 日頃から数字と文字の間に半角スペースを入れる癖があって、何気なくいつも通り半角スペースを入れたら 令和 1 年 になって気付いたという。 サンプルコード var culture = new CultureInfo(&quot;ja-jp&quot;); culture.DateTimeFormat.Calendar = new JapaneseCalendar(); var date = new DateOnly(2019, 5, 1); date.ToString(&quot;ggy…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxin9le.hatenablog.jp%2Fentry%2F2022%2F10%2F28%2F002656&quot; title=&quot;C#/.NET で和暦の元年表記をするときの注意点 - xin9le.net&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://cdn-ak.f.st-hatena.com/images/fotolife/x/xin9le/20221028/20221028001145.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-10-28 00:26:56</published>
  <title>C#/.NET で和暦の元年表記をするときの注意点</title>
  <type>rich</type>
  <url>https://xin9le.hatenablog.jp/entry/2022/10/28/002656</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
