title: Convert Date To sql formate in php and store it to database
body: <p>I have date time picker in html that return me the date
  when i retrieve data in php page</p>
  
  <pre><code>$date=$_POST['date'];
  echo $date;
  </code></pre>
  
  <p>it return the output in this format</p>
  
  <p>13 November 2015</p>
  
  <p>i want to convert it to store in mysql table</p>
  
  <p>how can i convert it to sql format to store because when i am trying to store this date mysql stores 0000-00-00 by default. i can not take data type varchar because i have to create views according to date.</p>
  
  <p>also i need the code to convert it again to this format to show data in this format. </p>