I used this tag in html for accepting the date
$date = date('d-m-Y', strtotime($_POST["date"]));
I used this code for converting the date. The date is converted successfully if I simply echo it but date is not getting inserted in database. It gets posted as 00-00-0000 but if click it in database then proper date appears.The type 'date' is used in database to store the date.
Please tell me how to store it in database in that converted format.