<?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 : QUESTION: How to loop selection of dates</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : QUESTION: How to loop selection of dates]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 29 May 2026 18:50:50 +0000</pubDate>
  <lastBuildDate>Mon, 26 Jan 2009 08:52:04 +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=13251</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[QUESTION: How to loop selection of dates : Hi @Dentor   This is very helpfull...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13251&amp;PID=44892&amp;title=question-how-to-loop-selection-of-dates#44892</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 13251<br /><strong>Posted:</strong> 26 January 2009 at 8:52am<br /><br />Hi @Dentor <DIV>&nbsp;</DIV><DIV>This is very helpfull <img src="https://forum.codejock.com/smileys/smiley4.gif" border="0">&nbsp;Thanks a lot for code snippet. This is how it should be in a forum: sharing knowlegde and willing to help others.</DIV><DIV>&nbsp;</DIV><DIV>Thank you</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 26 Jan 2009 08:52:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13251&amp;PID=44892&amp;title=question-how-to-loop-selection-of-dates#44892</guid>
  </item> 
  <item>
   <title><![CDATA[QUESTION: How to loop selection of dates :   You can use Descrete Selection...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13251&amp;PID=44890&amp;title=question-how-to-loop-selection-of-dates#44890</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13251<br /><strong>Posted:</strong> 26 January 2009 at 8:00am<br /><br /><img src="https://forum.codejock.com/uploads/20090126_080850_ScreenShot1.jpg" border="0"><DIV>&nbsp;</DIV><DIV>You can use Descrete Selection Mode in DatePicker doing LeftClick holding Ctrl key pressed</DIV>]]>
   </description>
   <pubDate>Mon, 26 Jan 2009 08:00:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13251&amp;PID=44890&amp;title=question-how-to-loop-selection-of-dates#44890</guid>
  </item> 
  <item>
   <title><![CDATA[QUESTION: How to loop selection of dates : Hi Aaron,  For your application,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13251&amp;PID=44888&amp;title=question-how-to-loop-selection-of-dates#44888</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1646">dentor</a><br /><strong>Subject:</strong> 13251<br /><strong>Posted:</strong> 26 January 2009 at 3:44am<br /><br />Hi Aaron,<DIV>&nbsp;</DIV><DIV>For your application, you can use this subroutine <strong><EM>CalcSelectDays</EM></strong> to put the list of the selected days in&nbsp;SelectDays().</DIV><DIV>&nbsp;&nbsp;</DIV><DIV>Dim NbDays As Long<BR>Dim SelectDays() As Date</DIV><DIV>&nbsp;</DIV><DIV>Private Sub CalcSelectDays(NbDays as Long, SelectDays() as Date)<BR>Dim i As Long<BR></DIV><DIV>&nbsp;&nbsp;&nbsp; NbDays = 0<BR>&nbsp;&nbsp;&nbsp; ReDim SelectDays(NbDays)<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; With DatePicker1.Selection<BR>&nbsp;&nbsp;&nbsp; For i = 0 To .BlocksCount - 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AddSelectDays .Blocks(i).DateBegin, .Blocks(i).DateEnd, NbDays, SelectDays()<BR>&nbsp;&nbsp;&nbsp; Next<BR>&nbsp;&nbsp;&nbsp; End With<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; For i = 1 To NbDays<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print SelectDays(i)<BR>&nbsp;&nbsp;&nbsp; Next<BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>Private Sub AddSelectDays(DateBegin As Date, DateEnd As Date, Nb As Long, SelDays() As Date)<BR>Dim Day As Date<BR>&nbsp;&nbsp;&nbsp; Day = DateBegin<BR>&nbsp;&nbsp;&nbsp; Do<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Nb = Nb + 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReDim Preserve SelDays(Nb)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SelDays(Nb) = Day<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>I Hope it was usefull for you.</DIV><DIV>&nbsp;</DIV><DIV>And thanks for your so many contributions that make this forum so living.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 26 Jan 2009 03:44:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13251&amp;PID=44888&amp;title=question-how-to-loop-selection-of-dates#44888</guid>
  </item> 
  <item>
   <title><![CDATA[QUESTION: How to loop selection of dates : Hi Mark,   I only want to use...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13251&amp;PID=44885&amp;title=question-how-to-loop-selection-of-dates#44885</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 13251<br /><strong>Posted:</strong> 26 January 2009 at 2:53am<br /><br />Hi Mark, <DIV>&nbsp;</DIV><DIV>I only want to use DatePicker control (not calendar control) for selecting dates. I would like to get the selected dates and&nbsp;save selection&nbsp;in a database and in a next session I would like to select the dates loading them from that database.&nbsp;Also I would like some days (which are special) to select&nbsp;with&nbsp;different background<strong>s,</strong> so user easely sees&nbsp;what previously was selected. </DIV><DIV>&nbsp;</DIV><DIV>I only want to present the dates,&nbsp;visual to the user, in for example a year, that's why I need this <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Thanks a lot in advance</DIV><DIV>&nbsp;&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 26 Jan 2009 02:53:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13251&amp;PID=44885&amp;title=question-how-to-loop-selection-of-dates#44885</guid>
  </item> 
  <item>
   <title><![CDATA[QUESTION: How to loop selection of dates : Hi, Aaron, in current (12) version...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13251&amp;PID=44875&amp;title=question-how-to-loop-selection-of-dates#44875</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13251<br /><strong>Posted:</strong> 25 January 2009 at 9:21pm<br /><br />Hi, Aaron, in current (12) version selection always means continious range <FONT size=2><DIV>You can check in VB sample finction </DIV><DIV>Private Sub CalendarControl_SelectionChanged(ByVal SelType As XtremeCalendarControl.CalendarSelectionChanged)<BR>&nbsp;&nbsp;&nbsp; If SelType = xtpCalendarSelectionDays Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print "SelectionChanged. Day(s)."<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If CalendarControl.ActiveView.Selection.IsValid Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print CalendarControl.ActiveView.Selection.Begin<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print CalendarControl.ActiveView.Selection.End<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; If SelType = xtpCalendarSelectionEvents Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print "SelectionChanged. Event(s)."<BR>&nbsp;&nbsp;&nbsp; End If<BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>which give you range: Selection.Begin and Selection.End - so you don't need smth between as it always in.</DIV><DIV>&nbsp;</DIV><DIV>in Release 13 I add (in Month View only) discrete selection of days where you can have any set. </DIV><DIV>&nbsp;</DIV><DIV>See snapshot: &#091;unfortunately - Microsoft standard Month Picker (and similar CJ Month Picker) - used in DatePicker control - not supported discrete selection - so DatePicker at least now not reflect discrete selection inside Month View but user can use such temporary discrete selection e.g. to paste previously copied event into many different dates).</DIV><DIV><img src="https://forum.codejock.com/uploads/20090125_212235_ScreenShot3.jpg" border="0"></FONT></DIV>]]>
   </description>
   <pubDate>Sun, 25 Jan 2009 21:21:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13251&amp;PID=44875&amp;title=question-how-to-loop-selection-of-dates#44875</guid>
  </item> 
  <item>
   <title><![CDATA[QUESTION: How to loop selection of dates : Hi,   I&amp;#039;m totally new...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13251&amp;PID=44866&amp;title=question-how-to-loop-selection-of-dates#44866</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 13251<br /><strong>Posted:</strong> 25 January 2009 at 7:20am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV><DIV>I'm totally new to this but for some of you this will be a piece of cake <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0">&nbsp;</DIV><DIV>&nbsp;</DIV></DIV><OL><LI>I would like to get all selected dates from Selection in DatePicker. Looping Selection will return all dates (only start and/or end date) but how can I get the dates between start and end date?</LI><LI>I would like to select days (for example 12-01-2009, 14-01-2009 and 19-01-2009) How to?</LI></OL><P>Thanks a lot</P><DIV></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 25 Jan 2009 07:20:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13251&amp;PID=44866&amp;title=question-how-to-loop-selection-of-dates#44866</guid>
  </item> 
 </channel>
</rss>