This question already has an answer here:
- Convert one date format into another in PHP 15 answers
based on this code :
$tarikh = mysql_real_escape_string($_POST['tarikh']);
$tarikh = date('Y-m-d', strtotime($_POST['tarikh']));
can someone show me to convert the format from Y-m-d to d-m-Y format ? thanks