list->children() as $child)
{
$name = $child->name;
$start = $child->start;
$end = $child->end;
$start_date = date(“l M jS, Y”, strtotime($start));
$start_time = date(“g:ia”, strtotime($start));
$end_time = date(“g:ia”, strtotime($end));

if ($checkdate!=$start_date) { echo ‘

‘.$start_date.’

‘;}

echo ““.$start_time.”: “.$name.”
“;

$checkdate = $start_date;

}
?>