title: Variable value has not changed in Ajax.reload datatable
body: <p>I have a problem in my code. I can't change the <code>year</code> values in my Datatable</p>
  
  <p>This code gets the actual year:</p>
  
  <pre><code>var yearDate = new Date();
  
  var year = yearDate.getFullYear();
  </code></pre>
  
  <p>My datatable method:</p>
  
  <pre><code>$(document).ready(function() {
  
      januaryTable = $('#january').DataTable({ 
  
          "processing": true,
          "serverSide": true,
          "order": [],
  
  
          "ajax": {
              "url": "&lt;?php echo site_url('gastos/ajax_list/')?&gt;" + year+'-01-01' +'/'+ year+'-01-31',
              "type": "POST",
  
          },
  
          "columnDefs": [
              { 
                  "targets": [ -1 ],
                  "orderable": false,
              },
          ],
  
      });
  }
  </code></pre>
  
  <p>This code reloads my datatable</p>
  
  <pre><code>function reload_january_table()
  {
      januaryTable.ajax.reload(null,false);
  
  }
  </code></pre>
  
  <p>I change the var <code>year</code> with a select method and it calls the function reload_january_table(), but for example, when I select the value <code>2016</code>, the table doesn't get values from 2016, it keeps the <code>2017</code> values.</p>
  
  <p>Can someone help me ? And sorry for my english if it isn't good.</p>