willyg Posted September 11, 2009 Share Posted September 11, 2009 Hi All, A bit of a noob here. I'm wondering if anyone could help me with the following $today = date("Y-m-d\T") ."00:00:00"; $tomorrow = mktime(0,0,0,date("m"),date("d")+1,date("Y")); $calendar_xml_address = "http://www.google.com/calendar/feeds/".$gmail."/" . "public/full?orderby=starttime&singleevents=true&" . "start-min=" . $today . "&" . "start-max=" . date("Y-m-d\T00:00:00", $tomorrow); I'm using it to list events for today, which it does fine. The thing I'm struggling with is how to stop it listing events for which the finishing time has passed. At the moment, it lists the whole day until that day has passed. So it's obviously something to do with the 'start-min' bit, but I'm not sure how to do it. Does anyone have any ideas? Thanks in advance for any help! Link to comment https://forums.phpfreaks.com/topic/173886-php-google-calendar-halp/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.