<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Get dates from recurrence pattern</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Get dates from recurrence pattern]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 16:15:54 +0000</pubDate>
  <lastBuildDate>Mon, 12 Apr 2010 14:05:47 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=14043</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Get dates from recurrence pattern : Has anyone figured out a way to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14043&amp;PID=58040&amp;title=get-dates-from-recurrence-pattern#58040</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5320">jgordon428</a><br /><strong>Subject:</strong> 14043<br /><strong>Posted:</strong> 12 April 2010 at 2:05pm<br /><br />Has anyone figured out a way to do this in a SQL Server stored procedure? There are parts of our system that require the scheduling data to be in a recordset format (e.g. crystal reports, searching for available time slots, etc.). Having a stored procedure to handle the recurrence expansion rather than using the ActiveX control and then inserting records into a temporary table  would be hugely helpful.]]>
   </description>
   <pubDate>Mon, 12 Apr 2010 14:05:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14043&amp;PID=58040&amp;title=get-dates-from-recurrence-pattern#58040</guid>
  </item> 
  <item>
   <title><![CDATA[Get dates from recurrence pattern : Hi Dentor,  This is perfect....!!...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14043&amp;PID=48159&amp;title=get-dates-from-recurrence-pattern#48159</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3440">DataFlowJoe</a><br /><strong>Subject:</strong> 14043<br /><strong>Posted:</strong> 20 April 2009 at 1:40pm<br /><br />Hi Dentor,<DIV>&nbsp;</DIV><DIV>This is perfect....!! I've now got it working and doing what I hoped it could do.</DIV><DIV>&nbsp;</DIV><DIV>Thank you so much for helping me out with this, I'm sure the calendar ActiveX would be an even better product for developers if there were more examples like the one you've posted for me. </DIV><DIV>&nbsp;</DIV><DIV>The help file that comes with the control hardly has any examples for working with the scores of properties, methods and events. </DIV><DIV>Better documentation would get developers up to speed a lot quicker with it.&nbsp;</DIV><DIV>The control itself is brilliant in what it does, so no complaints there.</DIV><DIV>&nbsp;</DIV><DIV>Thanks again for taking the time to answer my question, hopefully it will benefit others.</DIV><DIV>&nbsp;</DIV><DIV>Cheers from South Wales UK</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 20 Apr 2009 13:40:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14043&amp;PID=48159&amp;title=get-dates-from-recurrence-pattern#48159</guid>
  </item> 
  <item>
   <title><![CDATA[Get dates from recurrence pattern : Hello DataFlowJoe,  I think...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14043&amp;PID=48107&amp;title=get-dates-from-recurrence-pattern#48107</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1646">dentor</a><br /><strong>Subject:</strong> 14043<br /><strong>Posted:</strong> 19 April 2009 at 9:24am<br /><br />Hello DataFlowJoe,<DIV>&nbsp;</DIV><DIV>I think that the better way to retrieve all the events including recurring events is to use the RetrieveDayEvents method from the CalendarControl ActiveX that will do all the work.</DIV><DIV>&nbsp;</DIV><DIV><U>Below a little code to quickly show one way to do the job</U>:</DIV><DIV>&nbsp;</DIV><DIV>' ---------- the definition of the events collection to be return (can be extented)&nbsp;</DIV><DIV>Private Type MyEvents<BR>&nbsp;&nbsp;&nbsp; StartTime&nbsp;&nbsp; As Date<BR>&nbsp;&nbsp;&nbsp; EndTime&nbsp;&nbsp;&nbsp;&nbsp; As Date<BR>&nbsp;&nbsp;&nbsp; Subject As String<BR>End Type</DIV><DIV>&nbsp;</DIV><DIV>' ---------- The call of the subroutine</DIV><DIV>Private Sub FindEvents()<BR>Dim FindEvents() As MyEvents, EvtCount As Long<BR>Dim DateStart As Date, DateEnd As Date<BR>Dim pEvent As CalendarEvent, i As Long</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; ' *** Find events from now plus 6 days<BR>&nbsp;&nbsp;&nbsp; EvtCount = 0<BR>&nbsp;&nbsp;&nbsp; ReDim FindEvents(EvtCount)<BR>&nbsp;&nbsp;&nbsp; DateStart = Now<BR>&nbsp;&nbsp;&nbsp; DateEnd = DateAdd("d", 6, DateStart)<BR>&nbsp;&nbsp;&nbsp; ' *** the subroutine<BR>&nbsp;&nbsp;&nbsp; FindAllEvents DateStart, DateEnd, EvtCount, FindEvents()<BR>&nbsp;&nbsp;&nbsp; ' *** view the events<BR>&nbsp;&nbsp;&nbsp; For i = 1 To EvtCount<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print FindEvents(i).StartTime &amp; "-" &amp; FindEvents(i).EndTime &amp; "-" &amp; FindEvents(i).Subject<BR>&nbsp;&nbsp;&nbsp; Next<BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>' ---------- The subroutine (the search for each day in the periode)</DIV><DIV>Private Sub FindAllEvents(DateStart As Date, DateEnd As Date, EvtCount As Long, FindEvents() As MyEvents)<BR>Dim Events As CalendarEvents, Day As Date<BR>Dim pEvent As CalendarEvent</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; Day = DateStart<BR>&nbsp;&nbsp;&nbsp; Do<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Events = CalendarControl.DataProvider.RetrieveDayEvents(Day)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For Each pEvent In Events<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EvtCount = EvtCount + 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReDim Preserve FindEvents(EvtCount)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FindEvents(EvtCount).StartTime = pEvent.StartTime<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FindEvents(EvtCount).EndTime = pEvent.EndTime<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FindEvents(EvtCount).Subject = pEvent.Subject<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Day = DateAdd("d", 1, Day)<BR>&nbsp;&nbsp;&nbsp; Loop Until Day &gt; DateEnd<BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>I hope it can help you.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 19 Apr 2009 09:24:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14043&amp;PID=48107&amp;title=get-dates-from-recurrence-pattern#48107</guid>
  </item> 
  <item>
   <title><![CDATA[Get dates from recurrence pattern : Can anyone provide me with a simple...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14043&amp;PID=48073&amp;title=get-dates-from-recurrence-pattern#48073</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3440">DataFlowJoe</a><br /><strong>Subject:</strong> 14043<br /><strong>Posted:</strong> 17 April 2009 at 12:48pm<br /><br />Can anyone provide me with a simple example for retrieving all events including recurring events between 2 dates. This must be quite simple, yet&nbsp;I've searched the forum and the help file but have not found anything suitable. <DIV>I'm not using a custom provider, just an Access connection string. </DIV><DIV>I'm happy to create an&nbsp;ADO connection if that is required. </DIV><DIV>My programming language is VB.</DIV><DIV>&nbsp;</DIV><DIV>Please...please help, I'm desperate for this, I've spent at least 10 hrs fiddling around with this so far.</DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance. </DIV><DIV>&nbsp;</DIV><DIV>Hopefully I'll be able to help this forum in the future.</DIV><DIV>&nbsp;</DIV><DIV>Joe</DIV>]]>
   </description>
   <pubDate>Fri, 17 Apr 2009 12:48:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14043&amp;PID=48073&amp;title=get-dates-from-recurrence-pattern#48073</guid>
  </item> 
  <item>
   <title><![CDATA[Get dates from recurrence pattern : I&amp;#039;m using the microsoft access...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14043&amp;PID=48033&amp;title=get-dates-from-recurrence-pattern#48033</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3440">DataFlowJoe</a><br /><strong>Subject:</strong> 14043<br /><strong>Posted:</strong> 16 April 2009 at 5:59pm<br /><br />I'm using the microsoft access provider, are you able to give me an example of how I could achieve this using the ActiveX interface. I have found the help file&nbsp;has very few examples of how to work with the calendar ActiveX control.<DIV>&nbsp;</DIV><DIV><DIV></DIV><DIV></DIV>Thanks in advance,</DIV><DIV>&nbsp;</DIV><DIV></DIV><DIV></DIV>Joe<DIV></DIV>]]>
   </description>
   <pubDate>Thu, 16 Apr 2009 17:59:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14043&amp;PID=48033&amp;title=get-dates-from-recurrence-pattern#48033</guid>
  </item> 
  <item>
   <title><![CDATA[Get dates from recurrence pattern : You can do it using existed ActiveX...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14043&amp;PID=48020&amp;title=get-dates-from-recurrence-pattern#48020</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14043<br /><strong>Posted:</strong> 16 April 2009 at 4:46pm<br /><br />You can do it using existed ActiveX interface]]>
   </description>
   <pubDate>Thu, 16 Apr 2009 16:46:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14043&amp;PID=48020&amp;title=get-dates-from-recurrence-pattern#48020</guid>
  </item> 
  <item>
   <title><![CDATA[Get dates from recurrence pattern : Can anyone show me how to decipher...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14043&amp;PID=48017&amp;title=get-dates-from-recurrence-pattern#48017</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3440">DataFlowJoe</a><br /><strong>Subject:</strong> 14043<br /><strong>Posted:</strong> 16 April 2009 at 2:13pm<br /><br /><DIV>Can anyone show me how to decipher the recurrence pattern table so I can work out an algorithm for enumerating all the dates. </DIV><DIV>Is there an example on this forum, I had a look but couldn't find anything. I'll be using VB.</DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance,</DIV><DIV>&nbsp;</DIV><DIV>Joe</DIV>]]>
   </description>
   <pubDate>Thu, 16 Apr 2009 14:13:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14043&amp;PID=48017&amp;title=get-dates-from-recurrence-pattern#48017</guid>
  </item> 
 </channel>
</rss>