Hello Alain,
Please find the below code which i use,
DateFormat df = new SimpleDateFormat();
Date startTime = new Date();
Date endTime = new Date();
String st = "2011-03-21 11:30";
String et = "2011-03-21 12:40"; // 12:00 - 12:59 - g:when/@startTime must
be less than or equal to g:when/@endTime Exception occurs
df = new SimpleDateFormat("yyyy-MM-dd hh:mm");//No I18N
df.setTimeZone(TimeZone.getTimeZone(user.getTimezone()));
startTime = df.parse(st);
endTime=df.parse(et);
When eventTimes = new When();
eventTimes.setStartTime(new DateTime(startTime,timezone));
eventTimes.setEndTime(new DateTime(endTime,timezone));
myEntry.addTime(eventTimes);
CalendarEventEntry myEntry = new CalendarEventEntry();
myEntry = service.getEntry(eventFeedUrl, CalendarEventEntry.class);
myEntry.update();
--
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://code.google.com/apis/calendar/community/forum.html