Hi,

I am by no mean an iCal expert, so the trick that I have to generate a
perfect iCal string for a recurrence is first to create it using the
Calendar UI.  Then pull your calendar feed and look at the generated iCal
representation.

hope that helps,
Austin

On Tue, Aug 26, 2008 at 12:25 AM, Loomtronic <[EMAIL PROTECTED]> wrote:

>
> I am using the google calendar API with .Net.  I set my recurrence
> like this:
>
>        Dim x As New Google.GData.Calendar.EventEntry
>        Dim eventRecurrence As New Google.GData.Extensions.Recurrence
>        Dim eventrecurstring As String
>        eventrecurstring = "DTSTART;TZID=America/Los_Angeles:
> 20080825T070000\r\n"
>        eventrecurstring = eventrecurstring & "DTEND;TZID=America/
> Los_Angeles:20080825T080000\r\n"
>        eventrecurstring = eventrecurstring &
> ""RRULE:FREQ=WEEKLY;BYDAY=Tu;UNTIL=20090904\r\n"
>        eventRecurrence.Value = eventrecurstring
>        x.Recurrence = eventRecurrence
>
> I can never get the event to repeat!  Perhaps I am missing something
> completely obvous... When I look at the XML for the event it basically
> just cuts out the rule.
>
> <gd:recurrence>DTSTART;TZID=America/Los_Angeles:20080825T070000
> DTEND;TZID=America/Los_Angeles:20080825T080000
> BEGIN:VTIMEZONE
> TZID:America/Los_Angeles
> X-LIC-LOCATION:America/Los_Angeles
> BEGIN:DAYLIGHT
> TZOFFSETFROM:-0800
> TZOFFSETTO:-0700
> TZNAME:PDT
> DTSTART:19700308T020000
> RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU
> END:DAYLIGHT
> BEGIN:STANDARD
> TZOFFSETFROM:-0700
> TZOFFSETTO:-0800
> TZNAME:PST
> DTSTART:19701101T020000
> RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU
> END:STANDARD
> END:VTIMEZONE
> </gd:recurrence>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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