title: How to get the number of days in a month?
body: <p>I am trying to get the following in Postgres:</p>
  
  <pre><code>select day_in_month(2);
  </code></pre>
  
  <p>Expected output:</p>
  
  <pre><code>28
  </code></pre>
  
  <p>Is there any built-in way in Postgres to do that?</p>