<?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 Date</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : General Discussion : Sorting Date]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 03:43:59 +0000</pubDate>
  <lastBuildDate>Fri, 18 Mar 2005 08:10:09 +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=1984</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 Date : Oleg,  I understand the changes....  Item.Value...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1984&amp;PID=5809&amp;title=sorting-date#5809</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=289">flauzer</a><br /><strong>Subject:</strong> 1984<br /><strong>Posted:</strong> 18 March 2005 at 8:10am<br /><br />Oleg,<br><br>I understand the changes....<br><br>Item.Value = f.Value<br><br>and 'after' use the FORMAT method.....<br>Item.Format =.....<br><br><br>This work!!!<img src="http://forum.codejock.com/smileys/smiley9.gif" alt="Embarrassed" &#111;nclick="AddSmileyIc&#111;n'smileys/smiley9.gif'" style="cursor: pointer;" border="0" border="0">]]>
   </description>
   <pubDate>Fri, 18 Mar 2005 08:10:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1984&amp;PID=5809&amp;title=sorting-date#5809</guid>
  </item> 
  <item>
   <title><![CDATA[Sorting Date : The problem is DATETIME.  This...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1984&amp;PID=5807&amp;title=sorting-date#5807</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=289">flauzer</a><br /><strong>Subject:</strong> 1984<br /><strong>Posted:</strong> 18 March 2005 at 8:01am<br /><br />The problem is DATETIME.<br><br>This is my function, the result is WRONG:::<br><br>ie:.... I obtain in Data column (decrescent):<br><br>23/10/2005 14.56<br>23/08/2005 14.53<br>14/05/2005 14.52<br><span style="color: rgb(204, 0, 51);">13/07/2005 14.53</span><br>06/03/2004 14.51<br><span style="color: rgb(204, 0, 51);">03/11/2005 14.56<br><span style="color: rgb(0, 0, 0);">03/06/2005 14:53</span><br></span><br><br><br><br>Public Function WrapRP(ByVal f As Field, ByRef Item As ReportRecordItem)<br>&nbsp;&nbsp;&nbsp; '----------------------------------------------------<br>&nbsp;&nbsp;&nbsp; 'Wrap CodeJock grid<br>&nbsp;&nbsp;&nbsp; '----------------------------------------------------<br>&nbsp;&nbsp;&nbsp; Select Case f.Type<br>&nbsp;&nbsp; &nbsp;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Case adDBTimeStamp, adDBDate<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;If IsNull(f) Then<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;If IsNull(f) Then<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Item.Value = vbNullString<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Else<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Item.Value = CStr(f)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; End If<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p; <br>&nbsp;&nbsp;&nbsp; End Select<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <br>End Function<br>&nbsp;]]>
   </description>
   <pubDate>Fri, 18 Mar 2005 08:01:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1984&amp;PID=5807&amp;title=sorting-date#5807</guid>
  </item> 
  <item>
   <title><![CDATA[Sorting Date : How you add this report item? Try...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1984&amp;PID=5806&amp;title=sorting-date#5806</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1984<br /><strong>Posted:</strong> 18 March 2005 at 7:27am<br /><br /><P>How you add this report item?</P><P>Try simply add it as date value.</P>]]>
   </description>
   <pubDate>Fri, 18 Mar 2005 07:27:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1984&amp;PID=5806&amp;title=sorting-date#5806</guid>
  </item> 
  <item>
   <title><![CDATA[Sorting Date : PS.... .....long limit is 2147483647   ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1984&amp;PID=5801&amp;title=sorting-date#5801</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=289">flauzer</a><br /><strong>Subject:</strong> 1984<br /><strong>Posted:</strong> 18 March 2005 at 7:11am<br /><br />PS....<br>.....long limit is 2147483647<br><br>]]>
   </description>
   <pubDate>Fri, 18 Mar 2005 07:11:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1984&amp;PID=5801&amp;title=sorting-date#5801</guid>
  </item> 
  <item>
   <title><![CDATA[Sorting Date : I&amp;#039;d got &amp;#034;overflow&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1984&amp;PID=5800&amp;title=sorting-date#5800</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=289">flauzer</a><br /><strong>Subject:</strong> 1984<br /><strong>Posted:</strong> 18 March 2005 at 7:04am<br /><br />I'd got "overflow" problem , to be honest some month ago....<br><br>I only want to know if someone uses correctly the datetime format without problems.<br><br>Thanks......<br><br><br><br>]]>
   </description>
   <pubDate>Fri, 18 Mar 2005 07:04:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1984&amp;PID=5800&amp;title=sorting-date#5800</guid>
  </item> 
  <item>
   <title><![CDATA[Sorting Date :   flauzer wrote:Item.SortPriority...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1984&amp;PID=5797&amp;title=sorting-date#5797</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=756">gshawn</a><br /><strong>Subject:</strong> 1984<br /><strong>Posted:</strong> 18 March 2005 at 5:35am<br /><br /><P><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by flauzer" alt="Originally posted by flauzer" style="vertical-align: text-bottom;" /> <strong>flauzer wrote:</strong><br /><br />Item.SortPriority = CLng(Format(CStr(f.Value), "yyyymmddhh")) works until HOURS and not MINUTE......</td></tr></table> </P><P dir=ltr>Is there any reason why you can't do </P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P>Item.SortPriority = CLng(Format(CStr(f.Value), "yyyymmddhhmmss"))</P></BLOCKQUOTE><P dir=ltr>?</P><P dir=ltr>&nbsp;</P>]]>
   </description>
   <pubDate>Fri, 18 Mar 2005 05:35:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1984&amp;PID=5797&amp;title=sorting-date#5797</guid>
  </item> 
  <item>
   <title><![CDATA[Sorting Date : sorry.....old problem on ReportControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1984&amp;PID=5796&amp;title=sorting-date#5796</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=289">flauzer</a><br /><strong>Subject:</strong> 1984<br /><strong>Posted:</strong> 18 March 2005 at 4:12am<br /><br />sorry.....old problem on ReportControl (9.6.0.1 version )<br><br>Is there a way,(trick,workaround,....)<br>that can sort a dateTIME column correctly.... (it has to work with at data and a TIME)????????<br><br><br>PS<br>Item.SortPriority = CLng(Format(CStr(f.Value), "yyyymmddhh")) works until HOURS<br>and not MINUTE......<br><br><br>Thanks<img src="http://forum.codejock.com/smileys/smiley5.gif" border="0"><br>]]>
   </description>
   <pubDate>Fri, 18 Mar 2005 04:12:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1984&amp;PID=5796&amp;title=sorting-date#5796</guid>
  </item> 
 </channel>
</rss>