I had this problem:
my page contain a date input which I use the following script to convert into YYYY-MM-DD format before inserting into the table:
$date_elem = explode('-',$indate);
$tj = date('Y-m-d', mktime( 0,0,0,$date_elem[1],$date_elem[0],$date_elem[2]) );
The date was inserted successfully
Problem is when I retrieve the date and make a change to the date and use the the same script before updating the table I had this message:
"PHP Notice: A non well formed numeric value encountered in c:\Inetpub\wwwroot\dakwa\edit_page.php on line 23"
Line 23 is :
$tj = date('Y-m-d', mktime( 0,0,0,$date_elem[1],$date_elem[0],$date_elem[2]) );
Can anyone tell me what is wrong.