I have date time picker in html that return me the date when i retrieve data in php page
$date=$_POST['date'];
echo $date;
it return the output in this format
13 November 2015
i want to convert it to store in mysql table
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.
also i need the code to convert it again to this format to show data in this format.