<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nainaistar</author_name>
  <author_url>https://blog.hatena.ne.jp/nainaistar/</author_url>
  <blog_title>きり丸の技術日記</blog_title>
  <blog_url>https://nainaistar.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>技術</anon>
  </categories>
  <description>年と月のパラメータから月末日を求めるYearMonth型の記事を書きました。しかし、個人的に時刻を扱うときはLocalDate, LocalDateTimeのどちらかで扱いたいです。 今回の記事では、LocalDate, LocalDateTimeを元に月末日を求めます。 環境 Java 15 前提条件 なし。 ゴール LocalDateから月末日を求める LocalDateTimeから月末日を求める 月末日を求める withメソッドとTemporalAdjusters.lastDayOfMonthメソッドを組み合わせます。 withメソッドはパラメータの新しいインスタンスを作成します。例えば…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnainaistar.hatenablog.com%2Fentry%2F2021%2F05%2F13%2F120000&quot; title=&quot;JavaでLocalDateとLocalDateTimeを元に月末日を求める - きり丸の技術日記&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/n/nainaistar/20210512/20210512181109.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-05-13 12:00:00</published>
  <title>JavaでLocalDateとLocalDateTimeを元に月末日を求める</title>
  <type>rich</type>
  <url>https://nainaistar.hatenablog.com/entry/2021/05/13/120000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
