I am trying to insert a date from a PHP page into WordPress field using the below code
//calculate new expiration date add 1 year +3 days
$date12 = new DateTime($date9);
$date12->modify('+368 day');
$new_expire= (string)$date12->format('m/d/Y');
$sql_renew = "update wp_usermeta set meta_value=".$new_expire." where user_id=".$user_value." AND meta_key='wpcf-expiration-date'";
$result_renew = $mysqli->query($sql_renew);
the output I got is: 0.000247157686604053
I want to insert it into readable format.