How do I make the date from a form be entered into the database as 2007-05-23 (YYYY-MM-DD) Currently it is stored as Wednesday 23rd of April 2007 11:07:26 PM
line 2 I think I needs to change but havent found the right format, every thing Ive tried either errors or simply doesnt store anything. I might add that this is not a user enter date it is the time stamp of when they submitted the form.
$IP = $HTTP_SERVER_VARS["REMOTE_ADDR"];
$Date = date("l jS of F Y h:i:s A");
if($errors==1) echo $error;
else{
$where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/"));