title: javascript + define dates for each quarter
body: <p>I have a dropdown on my page named Quarter which has following values - </p>
  
  <pre><code>Quarter 1
  Quarter 2
  Quarter 3
  Quarter 4
  </code></pre>
  
  <p>Also i have another field named Year with Year values - 2015,2016,2-17,2-18,2019,2020</p>
  
  <p>I want to define the values for each quarter in my javascript code like</p>
  
  <pre><code>if(quarter = "quarter 1")
  {
    startdate = 2017-01-01;enddate = 2017-01-31
  }
  </code></pre>
  
  <p>And so on for other quarters as well. </p>
  
  <p>I would like to ask if there is built-in functionality to get the startdate and enddate for each quarter and i will append the year field value to it.so that it does not remain static.</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks in Advance</p>