title: How can force change the day in datetime in php
body: <pre><code>$date = date_create('2013-10-27');// This is the date that inputed in textbox and that format is (Y-m-d)
  
  $date = date_create('2013-10-10');// and if i click the button i want to force change the 27 to 10?
  </code></pre>
  
  <p>Should i use date_modify and do some loop or there's other way to change it in easy way rather than looping.</p>