Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have try following code but not success. giving error.

What I have tried:

Event newEvent = new Event
{
Summary = item.CalendarString,
Location = "",
Description = "",

Start = new EventDateTime()
{
DateTime = DateTime.Parse(startDate.ToString("yyyy-MM-dd ") + startTime),//DateTime.Parse("2018-05-28T09:00:00-07:00"),
TimeZone = timeZone,
},
End = new EventDateTime()
{
DateTime = DateTime.Parse(startDate.ToString("yyyy-MM-dd ") + endTime),// DateTime.Parse("2018-05-28T10:00:00-07:00"),
TimeZone = timeZone,
},
Recurrence = new String[] { "RRULE:FREQ=WEEKLY;UNTIL=" + enddateRecurrence + ";BYDAY=" + dayss },

};
Posted
Comments
Richard MacCutchan 29-May-18 4:28am    
What error?
Jinto Jacob 30-May-18 1:32am    
what do you mean by not working? what is the error you are getting?
jass39 30-May-18 2:23am    
I want show events on only monday between two dates but its show on all days

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900