<?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 : Bug with date format parsing in StripFormat()</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Bug with date format parsing in StripFormat()]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 30 May 2026 18:49:34 +0000</pubDate>
  <lastBuildDate>Sat, 02 Oct 2010 06:45:13 +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=17364</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[Bug with date format parsing in StripFormat() : Hi,I&amp;#039;ve discovered a bug...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17364&amp;PID=60639&amp;title=bug-with-date-format-parsing-in-stripformat#60639</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6406">ES</a><br /><strong>Subject:</strong> 17364<br /><strong>Posted:</strong> 02 October 2010 at 6:45am<br /><br />Hi,<br>I've discovered a bug in CXTPCalendarUtils::StripFormat() when running the sample Calendar demo and having a Windows date format containing a text string before the datum, i.e. 'today is 2/10-2010'. Maybe only a local issue as the default Windows date format varies, but nevertheless a bug...(as my localized version of Windows use this type of date format as default). <br><br>What happens is nIndex becomes -1 before checking IsFormatChar(strFormat&#091;nIndex&#093;), which causes an exception. A simple problem to correct, but I guess it should be done by Codejock in an upcoming release to propagate the fix to all users.<br>I've attached the code snippet below, the first <b>while </b>block finds a '-character in the first position (0) and then subtracts (with <b>nIndex--</b>) twice before ending the loop. Then <b>nIndex++</b> adds one, but nIndex is still negative when entering the last<b> while</b> block;<br><br><img src="uploads/6406/CXTPCalendarUtils_Strip&#070;ormat.png" height="556" width="806" border="0" /><br><br>/ES<br><br>]]>
   </description>
   <pubDate>Sat, 02 Oct 2010 06:45:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17364&amp;PID=60639&amp;title=bug-with-date-format-parsing-in-stripformat#60639</guid>
  </item> 
 </channel>
</rss>