"; $GCalstring01 = '2012-11-01T16:00:00-05:00'; $mydate = new DateTime($GCalstring01); //echo $mydate->format('l, M j g:i a') . "
"; //echo &mydate->format('g:i a') . "
"; //$GTime=substr($GCalstring01,11,8); //echo $GTime; //$Gtime_01=DateTime::createFromFormat($format_02, substr($GCalstring01,11,8)); //echo $Gtime_01->format('g:i a') . "
"; /* echo $GCalstring01 . "
"; echo "Format: " . $format . "; "; $date_01= (rstrip ($GCalstring01)); echo "date_01 = $date_01
"; $date = DateTime::createFromFormat($format_01, $date_01); echo $date->format('l, M j') . "\n"; // list($year, $month, $day); // $datetest01=explode("-", $GCALstring_01) /* $date_01= date(rstrip ($string01)); $date_02= dateTime('Y-m-d', $string01); echo "Original date string: " . $string01 . "
Truncated date string = " . $date_01 . " - Date_02 = " . $date_02 . "
"; //print_r(date_parse_from_format("yyyy-mm-dd", $date_01)); echo "

"; // $dayz_01=date_format($time_01, 'EEE, MMM d, ''yy'); // echo date_format($time_01, 'Y-m-d H:i:s') . "
"; $time_02=strtotime('2012-11-01T15:00:00-05:00'); echo $time_02; * */ ?>