Question


John

how to change date format to phpmyadmin date format ?

Date = 2015-09-02

<?php

$date 
="02-09-2015";
// i want to store this date in database  please help me
?>

Comments by experts


Rajesh Kakadiya
Date = 2015-09-02

<?php

$date 
="02-09-2015";
$newDate date("d-m-Y"strtotime($date));
// try this use $newDate  to insert in database
?>


Type your Comment below and click to send comment