Looking at the code, it looks like startTime and endTime are just strings.

Just print the characters you want instead of the whole string.

Ray

On Mon, Jan 12, 2009 at 9:04 AM, mayacre <[email protected]> wrote:
>
> Hi, currently when I called the getCalendarEventFeed() method and
> print the startTime as in the following code,
>
> $gdataCal = new Zend_Gdata_Calendar($client);
>  $eventFeed = $gdataCal->getCalendarEventFeed();
>  echo "<table>";
>  foreach ($eventFeed as $event) {
>    echo "<tr><td><strong>" . $event->title->text."</strong><br /
>>";
>    foreach ($event->when as $when) {
>      echo "Starts: " . $when->startTime."\nEnds: ".$when->endTime.
> "\n";
>
> I get the result like this: Starts: 2009-01-08T17:00:00.000+05:30
> I just want to see the date and the time. Other details like time zone
> is not important. How can I customize the code?
>
> Can anyone help. Thanks in advance.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to