include_once 'SimpleDateFormat.php';
$input_format = new SimpleDateFormat('dd.MM.yyyy HH:mm:ss'); //Europe standard
$output_format = new SimpleDateFormat('yyyy-MM-dd HH:mm:ss'); //mySql standard
$input_date = '29.2.2000 14:33:57';
$date = $input_format->parse($input_date);
You have not created $input_format OBJECT / $output_format OBJECT
using
new ClassName();
So something like this, I suppose:
<?php
include_once 'SimpleDateFormat.php';
// create 2 objects of Class
$input_format = new SimpleDateFormat('dd.MM.yyyy HH:mm:ss'); //Europe standard
$output_format = new SimpleDateFormat('yyyy-MM-dd HH:mm:ss'); //mySql standard'
// get data
$reserve_date = mysql_real_escape_string($_GET['selected_date']);
$reserve_time = mysql_real_escape_string($_GET['showtime']);
$input_date = $reserve_date + " " + $reserve_time;
// parse using the input object of the Class
$date = $input_format->parse($input_date);
?>