All-day events are created using a gd:when/@startTime
value representing the date on which the event will take place. As the gd:when/@endTime
value is exclusive, it should be set to the day after the event.
For instance, to create an all day event on the 5th of January, 2008, you would set the when
element to this:
<gd:when startTime="2008-01-05" endTime="2008-01-06"/>
You can choose to omit the endTime
attribute and the server will correctly insert the event. However, the endTime
will exist in the entry returned from the server.
For more information on the use of dates and times when working with single events, please see the Event "kind" documentation.