From HTML date input to MySQL date format via PHP
<p>I have some problems converting an HTML date to a MySQL date.</p>

<p>I have a form with an input field (type="date"), which outputs a date in format 29/04/2015</p>

<p>Whenever I click on the Send button, I send the date via PHP to a database which has a column in DATE format (2015-04-29)</p>

<p>Unfortunately the result is that the date is always stored as 1970-01-01, which means the conversion didn't work out as expected.</p>

<p>My conversion code, right now, is:</p>

<pre><code>@$entryDate = str_replace("/", "-", $_POST['entryDate']);
@$entryDate = date('Y-m-d', strtotime($entryDate));
</code></pre>

<p>Do you have any idea why the conversion is not working?</p>

<p>Thanks a lot for your help</p>