Recurring even in the calendar

How do you add a recurring event in the calendar that is schedule such as the last Tuesday of the month, or the 3 Thursday of the month?

Hi,
Per my understanding, you might want to get all the recurring events within a specific month using C#.
Here is working code demo about getting recurring events by month for your reference:
public static void getRecurringEvents()
using (SPSite site = new SPSite("http://sp"))
using (SPWeb web = site.RootWeb)
SPQuery query = new SPQuery();
query.ExpandRecurrence = true;
query.Query = "<Where><DateRangesOverlap><FieldRef Name=\"EventDate\" /><FieldRef Name=\"EndDate\" />" +
"<FieldRef Name=\"RecurrenceID\" /><Value Type=\"DateTime\">" +
"<Month />" +
"</Value></DateRangesOverlap></Where>";
//get the events in the specific months
query.CalendarDate = DateTime.Now.AddMonths(-1);
SPListItemCollection calendarItems = web.GetList("/Lists/Calendar1").GetItems(query);
foreach (SPListItem item in calendarItems)
Console.WriteLine(item["Title"] + ": starts "
+ item["EventDate"].ToString() + " and ends "
+ item["EndDate"].ToString());
It will return all the recurring events of last month:
Thanks
Patrick Liang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]

Similar Messages

  • My 2nd gen touch no longer adds changes from my Outlook 2003 calendar during sync. I even deleted the calendar from the iPod

    My 2nd gen touch no longer adds changes from my Outlook 2003 calendar during sync. I even deleted the calendar from the iPod & when I added it back, I still got old data. Any ideas?

    Hi William,
    See my post on: https://discussions.apple.com/message/15841192#15841192
    Hope this helps you.

  • How do you schedule 3 week  recurring events in the calendar ?

    How do you schedule an event in the calendar every 3 weeks ? I work a schedule that reoccurs every 3 weeks.

    Unfortunatley there are certain repetitions that the iPad can't create. However if you make them elsewhere and import it onto the iPad, it'll respect it. So if you sync with a computer, make your appointment there and then import that onto the iPad and it'll be on your calendar.

  • All the dates I have put on my Ical and even on the calendar of Iphone are disappeard, please help, all the dates I have put on my Ical and even on the calendar of Iphone are disappeard, please help

    I have a IMac and IPhone, because Of Icloud, all my appointments disappeared from the both apple accessories, can you help me please?

    Thank you Carolyn, I understand that and do use the same P/w for both the iphone and the computer and the apps were origionally for the iphone anyway, they just used to back on the computer and now they wont and the imac even cancels them off my iphone when I sync. And it says "Itunes" has made an error, try again...with the coes -54 and -50. This means I canot ack up my iphone properly. 

  • Why do some recurring appointments in my iphone/ipad re-schedule the appointment in outlook one hour earlier, even where the original meeting is set in outlook.  So if a meeting is at 4pm, the iphone/ipad says 4pm but knocks the outlook back to 3pm

    Please help me.  This seems to be an on-going problem but it seems Apple are yet to have fixed it. 
    I use my outlook calendar and my iphone and ipad but a problem keeps occurring when I sync. 
    If I have a recurring appointment, say 4pm on a Monday and enter it into outlook.  When I later sync and re-sync either the iphone or ipad, it shows as 4pm in these devices but when you look back at outlook, the appointment has been re-sceduled to 3pm.  It only happens with recurring appointment but it seems not all.  It happens even when the initial calendar entry is put into outlook first.  I have switched off i-cloud.  Have tried changing the time-zone settings etc. but it is still happening.  I have literally wasted hours on this and it is now driving me mad! Especially as the problem has been recorded preveiously from others and the glitch has still not been sorted.  How can you expect the iphone/ipad to be taken seriously as a business tool when it has such a glitch?
    There is also a similar problem with the iphone/ipad where the clocks go back and forward. 
    If someone techy from Apple happens to read my note, please please pease can you reply to let me know if a) there is a way round it, b) if not, when will it be fixed and c) if there is a way round it, please can you tell me exactly what settings I should have on my phone in terms of time-zones....
    Thank you

    I have this same problem as well. Updates to recurring meetings reflect correctly on my desktop Outlook and through OWA, but my iPhone shows the original meeting time/date and the updated time/date.
    My colleague has a Moto Q (Windows Mobile 6) and has the same problem....so, I'm guessing this is an Exchange Server problem.
    I also found this thread with the problem on Windows Mobile:
    https://forums.microsoft.com/WindowsMobile/ShowPost.aspx?PostID=3025257&SiteID=6 5&pageid=0

  • When I update a recurring event on my iPhone, it does not make changes to the calendar in ical or icloud.  Is anyone else having this issue?

    Updating a recurring event on my iPhone does not update the event in either ical or icloud.  If I add a new event on the iPhone it updates right away.  Is this a known problem?  Should I get rid of the recurring event and just make changes day to day manually?  I like having the recurring event set for my work schedule because it rarely changes, but when it does, I'd like to use my iPhone for the updates instead of carrying around my MAC Book all the time.
    Thank you!

    After connecting to iTunes, I noticed that "Back up to iCloud" was selected (in the middle of the screen on the "Summary" tab, under "Backup"), and "Last backed up to iCloud" reflected the time that I attempted to back up from my phone. Even now, the phone still says "Last Backup: Never," so there is clearly a disconnect. Hopefully Apple will fix this soon.

  • I use tripit on both my iphone and ipad.  However, while tripit will sync with the gmail calendar on my iphone, it will not sync with the gmail calendar on my ipad, even though the setting are all in place, correctly for both.

    I use the "Tripit" travel app on both my iPhone and iPad2.  While I have no problem getting my Tripit info synced to the Gmail Calendar on my iPhone, I am unable to get Tripit to sync to the Gmail calendar on my iPad, even though the setup information (email address, settings, etc.) are exactly the same.  I know that Tripit is installed correctly on the iPad, as I am able to go to that app directly and correctly see all of my info.  However, even though I've set up the secondary "Tripit" calendar feed (to Gamil) on the iPad, it's not synchronizing and showing up.  Is anyone else having this problem?

    All I had to do was complain.  I synced my iPhone to the Windows machine, checked the other account at iTunes prompting (where no apps had shown up previously), reconnected the iPad, and 140 apps downloaded including the App Store.  I have no idea why.

  • I upgraded to ios 7.1 and even after i updated to this version in the calendar view i could get a list of all of appointments and now i have half screen of calendar and then appointments is their any way to go full screen of appointmetns

    I upgraded to ios 7.1 and even after i updated to this new version in the calendar view i could get a list of all appointments and now i have done something and i get a half scrren of calendar and half screen of appointments.  is their anyway to get full screen of appointments with the 7.1 version

    Tap on any give date in the monthly view and you will be taken a list of event, the default position being the date you tapped.
    The icon just to the left of the search icon provides a master list view of events.
    http://help.apple.com/iphone/7/#/iph3d110f84

  • TS4337 How do you stop the incessant error message when calendar can't update or delete an event on my Exchange, even though I have hit every option and even deleted the exchange and the calendars.  I'm ready to never use the computer again with the const

    Calendar is incessantly posting error messages that it cannot change or delete an event on my Exchange calendar.  I have tried the "revert to server, try again, and ignore" more times than I can count.  I even deleted the exchange from my connection and reinstalled without help.  Even when I have deleted the Exchange, it continues to have this error window every 60 seconds.  I am ready to stop using the computer just for the stress of it.  Any suggestions or help before this screen winds up with a shoe in it?

    To prevent Firefox from displaying form autocomplete suggestions, you can turn off that feature using the about:config page.
    In the address bar, type or paste '''about:config''' and tap the Enter/Return key.
    I suggest bookmarking this for easier future access.
    In the search box, type or paste '''formf''' and tap the Enter/Return key.
    Scroll down to '''browser.formfill.enable''' and tap the Toggle button to switch it from true to false.
    That's it. Does it work on Facebook?
    ''The about:config preferences editor in the mobile version is similar in principle to the desktop version but many of the preferences available on the desktop version have no effect in mobile. This one I only tested on one site, but it seems to work.''

  • HT1296 Calendar items created on my Iphone 4S are not showing up in the Calendar on my MacPro after USB Sync..  even though they are still on the phone... ideas???

    Calendar items created on my Iphone 4S are not showing up in the Calendar on my MacPro after USB Sync..  even though they are still on the phone... ideas???

    In the Event mode use the View ➙ Sort ➙ By Date ➙ Decending menu option.  Then the latest imports will be near the top of the Event window (depending on when the photos were taken of course). 
    Or Control-Click on one of the thumbnails in the Last Import album and select Show Event from the contextual menu:
    OT

  • The calendar issue is so bad.  Is Apple even trying to fix the situation?

    My company uses the Calendar provided by Apple for communication.  With the updates, the calendar is so messed up and I have complained everywhere about it trying to get a revision.  Is Apple even trying to correct this situation?  It simple has to be effecting others as much as me.

    Since this is a user forum no one here knows what Apple is going to do.
    Have you reported your problem to Apple? Http://www.apple.com/feedback/ipad.html
    If you tell us the details of your problem someone here might be able to help.

  • IS there a solution to the issue of recurring events that disappear from the calendar?

    I just went back to my 2013 calendar entries to retrieve information so I can bill a client, and one of my work-related calendars is all messed up. The information logged on one of my recurring events is either 1) no long recorded or 2) it has shifted from Friday/Saturday to Saturday/Sunday. In any case, I cannot accurately bill my time until the calendar is made whole again.
    Can the information be restored through Time Machine? If so, how do I find the correct file? Should I upgrade to Mavericks? What can I do to fix this?

    Thank you for that I have been using a similar site http://ipinfo.info/netrenderer/ but yours seems much better - at least my website http://www.thelittlethings.info seems to be working okay now.

  • Ordering Calendars for delivery in different countries?  Live in the UK and want to order a calendar for printing/delivery in Canada.  However - can't change the default country -even changed the address in my Apple Account, no result.  Any suggestions?

    Ordering Calendars for delivery in different countries?  Live in the UK and want to order a calendar for printing/delivery in Canada.  However - can't change the default country -even changed the address in my Apple Account, no result.  Any suggestions?

    The general rule is that the shipping address must be in the same country as the billing address of the credit card used to order. However, you can try changing the Print Products store in iPhoto's Advanced preference pane to Canada and try ordering again.
    Happy Holidays

  • How do I set a recurring event for the last day of the month on iphone 4s calendar?

    I want to set a recurring event for the last day of every month - regardless of the date/number of days in the month. I'd prefer not to have to use an app to do this.

    Hi,
    You can do this using the custom repeat in iCal. You'll need two events to cover the second and fourth Mondays.
    Create the event on the second Monday of the month. In Repeat select Custom... > Frequency: Monthly > On the: second Monday.
    Do the same for the Fourth Monday.
    Best wishes
    John M

  • All of my iCloud calendars disappeared last night on my mac and all other devices.  That was all of my calendars.  Now I can't even get the option to save "on my mac."  Can I get them back somehow?

    Can I get my calendars back?  If not how do I save some on my Mac and some to iCloud?  I share many calendars amont my Mac, two iPads and 2 iPhones.

    I saved the calendars from different devices.  One or two were saved on my iPad.  The rest were saved on my MacBook.  All of them are gone from 5 devices that share them.  What doi I restore?

Maybe you are looking for