<?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 : Date Problem with PropertyGridItemDate</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : Date Problem with PropertyGridItemDate]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 24 May 2026 17:53:49 +0000</pubDate>
  <lastBuildDate>Wed, 06 Feb 2008 14:27:54 +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=9514</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[Date Problem with PropertyGridItemDate : You are right. If I set the Month...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9514&amp;PID=30887&amp;title=date-problem-with-propertygriditemdate#30887</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1790">jcollier</a><br /><strong>Subject:</strong> 9514<br /><strong>Posted:</strong> 06 February 2008 at 2:27pm<br /><br />You are right.&nbsp; If I set the Month first, it doesn't work.&nbsp; If I set the Day first it does.&nbsp; Definitely sounds like a bug.<br><br>Thanks for the help!<br><br><br>]]>
   </description>
   <pubDate>Wed, 06 Feb 2008 14:27:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9514&amp;PID=30887&amp;title=date-problem-with-propertygriditemdate#30887</guid>
  </item> 
  <item>
   <title><![CDATA[Date Problem with PropertyGridItemDate : Hi,   Try this:  Set also...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9514&amp;PID=30886&amp;title=date-problem-with-propertygriditemdate#30886</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 9514<br /><strong>Posted:</strong> 06 February 2008 at 2:13pm<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>Try this:</DIV><DIV>&nbsp;</DIV><DIV>Set also the day to a value and you will see that all date values (day, month, year)&nbsp;will return the proper values. </DIV><DIV>&nbsp;</DIV><DIV>Dim DateItem As PropertyGridItemDate<BR>Set DateItem = Category.AddChildItem(PropertyItemDate, "Due Date", "12/30/2000")<BR>DateItem.Format = "%m%d%Y"<BR>Debug.Print Month(CDate("2 / 2 / 2008"))<BR>DateItem.Month = Month(CDate("2 / 2 / 2008"))<BR></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>add:</DIV><DIV><DIV>Debug.print DateItem.Month '' return -1</DIV></DIV><DIV>&nbsp;</DIV><DIV>DateItem.Day = Day(CDate("2 / 2 / 2008"))<BR>DateItem.Month = Month(CDate("2 / 2 / 2008"))<BR>Debug.print DateItem.Day '' return "2"</DIV><DIV>Debug.print DateItem.Month '' return "2"</DIV><DIV>&nbsp;</DIV><DIV>I noticed that if the day value (DateItem.Day) is not used again, the value for DateItem.Month will be -1.</DIV><DIV>&nbsp;</DIV><DIV>And it doesn't matter if you use format &nbsp;mm/dd/yyyy or dd//mm/yyyy</DIV><DIV>&nbsp;</DIV><DIV>It looks like a bug to me... Maybe someone from the support team can give you an explanation with this.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 06 Feb 2008 14:13:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9514&amp;PID=30886&amp;title=date-problem-with-propertygriditemdate#30886</guid>
  </item> 
  <item>
   <title><![CDATA[Date Problem with PropertyGridItemDate : I am using VB6 with CJ 11.2.2Here...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9514&amp;PID=30880&amp;title=date-problem-with-propertygriditemdate#30880</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1790">jcollier</a><br /><strong>Subject:</strong> 9514<br /><strong>Posted:</strong> 06 February 2008 at 12:47pm<br /><br />I am using VB6 with CJ 11.2.2<br><br>Here is the code:<br><br>Dim DateItem As PropertyGridItemDate<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set DateItem = Category.AddChildItem(PropertyItemDate, "Due Date", "12/30/2000")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DateItem.Format = "%m%d%Y"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print Month(CDate("2 / 2 / 2008"))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DateItem.Month = Month(CDate("2 / 2 / 2008"))<br><br><br>with the debug line the Month returns 2 properly.&nbsp; However, the DateItem.Month value is returning -1 after it is assigned Month(CDate("2 / 2 / 2008")).&nbsp; It will also return -1 if I change the line to say DateItem.Month = 2<br><br>Any ideas?&nbsp; This is relatively urgent.<br>]]>
   </description>
   <pubDate>Wed, 06 Feb 2008 12:47:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9514&amp;PID=30880&amp;title=date-problem-with-propertygriditemdate#30880</guid>
  </item> 
 </channel>
</rss>