Forum Moderators: coopster
$date = $_SESSION['datedue'];
and then $date in the insert. is there a way to convert it? many thanks
but how di get date from session
Just like you did before. Don't forget to start_session() before you attempt to use the session variable. Looks like you are in dd-mm-yyyy format so you can use the PHP list and explode to get the values:
list [php.net]($dd, $mm, $yyyy) = explode [php.net]('-', $_SESSION['datedue']); // Date format: 26-05-2008
$date = "$yyyy-$mm-$dd";