title: date() format, differences between d-m-Y and d/m/Y
body: <p>this is my first post so sorry if i do something wrong. Well I got this code </p>
  
  <pre><code>$min=date('d-m-Y');
  
  $max=date ('31-12-2015');
  
  
  function rand_date($min, $max) {
  
  
      $min_epoch = strtotime($min);
      $max_epoch = strtotime($max);
  
      $rand_epoch = rand($min_epoch, $max_epoch);
  
      return date('d-m-Y H:i:s', $rand_epoch);
  }
  
  echo rand_date($min, $max);//return 04-12-2015 07:48:22`
  </code></pre>
  
  <p>It works, but the problem comes when I use this with the format than i need (d/m/Y)</p>
  
  <pre><code>$min=date('d/m/Y');
  
  $max=date ('31/12/2015');
  
  
  function rand_date($min, $max) {
  
  
      $min_epoch = strtotime($min);
      $max_epoch = strtotime($max);
  
      $rand_epoch = rand($min_epoch, $max_epoch);
  
      return date('d/m/Y H:i:s', $rand_epoch);
  }
  
  echo rand_date($min, $max);// Always shows 01/01/1970 01:00:00`.
  </code></pre>
  
  <p>I need works with this format, so I will be grateful if somebody answer my question.</p>