Hey..guys!I need to transfer a string to date format.The script having error said that call to a member function parse() on a non-object.Thanks for your help...

PHP Code:
$reserve_date mysql_real_escape_string($_GET['selected_date']); 
    
$reserve_time mysql_real_escape_string($_GET['showtime']); 
       
    
$input_format date('dd.MM.yyyy HH:mm:ss'); //Europe standard
    
$output_format date('yyyy-MM-dd HH:mm:ss'); //mySql standard
    
$input_date $reserve_date " " $reserve_time;
    
$date $input_format->parse($input_date);