I have tried to convert following date to mysql date format
accutual my date is : 01-01-17
PHP Code
<?php
$datesrc = '01-01-17';
echo date('Y-m-d', strtotime($datesrc));
?>
Result:
2001-01-17
In this case how to handle this type of date format(01-01-17 (d-m-y)), because i got this date format in user uploaded file..