title: How to get starting date and current date of month in react js?
body: <p>I need to get the starting date and current date of the month to send the date in api to get data, is there any way to get the starting date of month and current date and simlarly year and week</p>
  <p>eg : i need to send:</p>
  <pre><code>var apiUrl = window.$_APIurl+&quot;admin/installStatistics?fromDate=2020-01-01&amp;toDate=2020-07-03&quot;;
  axios.get(apiUrl, {headers: headers})
  </code></pre>
  <p>This from date and to date is dynamic and i change it using dropdown selection , how to send this date in react js?</p>