How do I pass current date range from Fullcalendar to the JSON function
<p>I use fullcalendar eventsources function, to get events data from db:</p>

<pre><code>eventSources: getSources()
</code></pre>

<p>where getSources is</p>

<pre><code>getSources(){
 var mysources = {
   mysourceone:{
                url: YOUR URL TO GET JSON,
                type: 'POST', 
                data:{
                    st:'2016-08-19',et:'2016-08-24'
                 },     
                 cache: false,
                 color: '#C1272D',
                 textColor: 'white'
                 }
              }
  return [mysources.mysourceone];
}
</code></pre>

<p>My question is, how do I replace fixed dates in this function with currently selected date range in fullcalendar? </p>

<pre><code>                data:{
                    st:'2016-08-19',et:'2016-08-24'
                 }, 
</code></pre>