title: find first and last date of the last month
body: <p>I have a simple but tricky code to write where I have given the date String of today in UTC time. </p>
  
  <pre><code>String s = Instant.now().toString().replaceAll("T.*", "");
  </code></pre>
  
  <p>I need to find the first and last days of the last month and store them in separate Strings. Any advice on how to achieve it best?</p>