The "Support Requests" forum is now viewable by guests.
Started by TimCorless, January 10, 2006, 09:24:12 PM
// get components of a date $day = $_POST['day']; $month = $_POST['month']; $year = $_POST['year']; // add the compnents of date to make a real date $date = "$day-$month-$year"; // get components of a time $hours = $_POST['hours']; $minutes = $_POST['minutes']; // add the components of time to make a real time $time = "$hours:$minutes:00"; // get the place $place = $_POST['place']; // get the comments $comments = $_POST['comments']; // need to convert date and time on their own into a Timestamp // so concatenate them, then use strtotime to convert them into a // timestamp, and store this in a new variable. $datetime = "$date $time GMT"; echo $datetime; $gigdate = strtotime($datetime, 0); echo $gigdate; $gigdate1 = strftime('%H %M %d %m %Y', $gigdate); echo $gigdate1;
21-06-2006 21:00:00 GMT179581320013 00 27 11 2026