<?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 : Sorting by Date, Please HELP!!!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Sorting by Date, Please HELP!!!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 11:55:21 +0000</pubDate>
  <lastBuildDate>Tue, 17 Jun 2008 13:16:23 +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=11060</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[Sorting by Date, Please HELP!!! : thank you all, the CDate did...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11060&amp;PID=36871&amp;title=sorting-by-date-please-help#36871</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2368">cmm2006</a><br /><strong>Subject:</strong> 11060<br /><strong>Posted:</strong> 17 June 2008 at 1:16pm<br /><br />thank you all,<DIV>the CDate did the job. <img src="https://forum.codejock.com/smileys/smiley32.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Tue, 17 Jun 2008 13:16:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11060&amp;PID=36871&amp;title=sorting-by-date-please-help#36871</guid>
  </item> 
  <item>
   <title><![CDATA[Sorting by Date, Please HELP!!! : Also works if you initially pass...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11060&amp;PID=36832&amp;title=sorting-by-date-please-help#36832</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1200">Stilki</a><br /><strong>Subject:</strong> 11060<br /><strong>Posted:</strong> 17 June 2008 at 12:54am<br /><br />Also works if you initially pass in a date variable when calling <strong>AddItem</strong>.<DIV>Obviously the reportcontrol determines the data type when calling AddItem.</DIV><DIV>&nbsp;</DIV><DIV>Set Item = Record.AddItem(CDate("15/7/08"))</DIV>]]>
   </description>
   <pubDate>Tue, 17 Jun 2008 00:54:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11060&amp;PID=36832&amp;title=sorting-by-date-please-help#36832</guid>
  </item> 
  <item>
   <title><![CDATA[Sorting by Date, Please HELP!!! : From my testing this workaround...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11060&amp;PID=36816&amp;title=sorting-by-date-please-help#36816</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1200">Stilki</a><br /><strong>Subject:</strong> 11060<br /><strong>Posted:</strong> 16 June 2008 at 11:18pm<br /><br /><DIV>From my testing this workaround seems to work.</DIV><DIV>&nbsp;</DIV><DIV>A date/time value can be represented by a numerical number. I use this number and assign it to the <strong>Item.Value</strong> property.</DIV><DIV>&nbsp;</DIV><DIV>I then format the date/time value&nbsp;to my needs and&nbsp;assign it to the <strong>Item.Caption</strong> property.</DIV><DIV>&nbsp;</DIV><DIV>The sorting then works fine.</DIV><DIV>&nbsp;</DIV><DIV>eg. (In Visual Basic)</DIV><DIV>&nbsp;</DIV><DIV><strong>Item.Value </strong>= <strong>CDbl</strong>(ADateVariableWithAValue)</DIV><DIV><strong>Item.Caption</strong> = <strong>Format$</strong>(ADateVariableWithAValue, "dd/mm/yy HH:MM AMPM")</DIV>]]>
   </description>
   <pubDate>Mon, 16 Jun 2008 23:18:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11060&amp;PID=36816&amp;title=sorting-by-date-please-help#36816</guid>
  </item> 
  <item>
   <title><![CDATA[Sorting by Date, Please HELP!!! : My application works with multiple...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11060&amp;PID=36812&amp;title=sorting-by-date-please-help#36812</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3717">Smucker</a><br /><strong>Subject:</strong> 11060<br /><strong>Posted:</strong> 16 June 2008 at 9:52pm<br /><br />My application works with multiple databases (and has to work across multiple time zones). Some databases don't have a built-in date format. So I store my database dates in ISO 8601 format as UTC (<b>YYYY-MM-DDThh:mm:ss.ssssZ</b>), which collates properly; then convert to local time and user's selected regional settings for display.<br><br>I don't know enough about the CJ COM controls (I use MFC) to know how difficult this would be, but there should at least be a callback for item comparison during sorting, wherein you could parse the dates and sort properly by <b>YYYYMMDD</b>.<br><br><br><a href="http://en.wikipedia.org/wiki/ISO_8601" target="_blank">http://en.wikipedia.org/wiki/ISO_8601</a>]]>
   </description>
   <pubDate>Mon, 16 Jun 2008 21:52:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11060&amp;PID=36812&amp;title=sorting-by-date-please-help#36812</guid>
  </item> 
  <item>
   <title><![CDATA[Sorting by Date, Please HELP!!! : I have records in my database...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11060&amp;PID=36801&amp;title=sorting-by-date-please-help#36801</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2368">cmm2006</a><br /><strong>Subject:</strong> 11060<br /><strong>Posted:</strong> 16 June 2008 at 3:47pm<br /><br /><img src="https://forum.codejock.com/smileys/smiley19.gif" border="0">I have records in my database that includes the OrderDate, but when I sort the reportcontrol by date, well it's not sorting properly. For instance: <DIV>if the OrderDate are as followed: 6/1/08, 6/2/08, 6/3/08, 6/11/08,6/12/08. The correct way the report suppose to be displayed the list is:</DIV><DIV>6/1/08</DIV><DIV>6/2/08</DIV><DIV>6/3/08</DIV><DIV>6/11/08</DIV><DIV>6/12/08</DIV><DIV>but instead, it shows the following:</DIV><DIV>6/1/08</DIV><DIV>6/11/08</DIV><DIV>6/12/08</DIV><DIV>6/2/08</DIV><DIV>6/3/08</DIV><DIV>any help!!!!<img src="https://forum.codejock.com/smileys/smiley19.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Mon, 16 Jun 2008 15:47:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11060&amp;PID=36801&amp;title=sorting-by-date-please-help#36801</guid>
  </item> 
 </channel>
</rss>