title: Creating SQL Function to print out start and end date of previous quarter
body: <p>I want to develop an SQL function that get the quarter date range based on the current date</p>
  <p>Example</p>
  <p>First Quater: Jan 1 to March 31
  2nd Qtr: April to June 30
  3rd Qtr: Jul to Sept
  4th Qtr: Oct - Dec</p>
  <p>So depending on the date I run the sql function. It outputs the date for the start and end of the previous quarter.</p>
  <p>So if I run it today (18th April 2022)</p>
  <p>It outputs, Jan 1 2022 and Mar 31 2022</p>
  <p>Please help thanks</p>