Weedpacket;10924789 wrote:First, the date column in the database shouldn't be a varchar, it should be a date.
Second, it would appear that $_POST['estimatedDelivery'] is an array, not a string.
Yep I just changed it to varchar to see what was actually being written to the database.
As for the second problem, how do I modify the date format code to work with the $_POST array? I'm still a bit of a newb 😛
$arr = explode("-", $_POST['estimatedDelivery']);
$date = $arr[2] . '-' . $arr[1] . '-' . $arr[0];