title: how to split date start end to array?
body: <p>If you're using PHP</p>
  
  <pre><code>$start = new DateTime('1-1-2017');
  $end = new DateTime('4-1-2017');
  </code></pre>
  
  <p>split date to 3</p>
  
  <p>result :</p>
  
  <pre><code>array(
    array('start'=&gt; 1-1-2017,'end'=&gt;2-1-2017),
    array('start'=&gt; 2-1-2017,'end'=&gt;3-1-2017),
    array('start'=&gt; 3-1-2017,'end'=&gt;4-1-2017)
  );
  </code></pre>
  
  <p>thanks </p>