<?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 : Un&#100;ocumented Feature - Date/Time Picker?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : Un&#100;ocumented Feature - Date/Time Picker?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 16:16:29 +0000</pubDate>
  <lastBuildDate>Wed, 25 Aug 2004 03:55:58 +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=1102</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[Un&#100;ocumented Feature - Date/Time Picker? : If I add an item as per the Visual...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1102&amp;PID=2874&amp;title=undocumented-feature-date-time-picker#2874</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=280">ianp</a><br /><strong>Subject:</strong> 1102<br /><strong>Posted:</strong> 25 August 2004 at 3:55am<br /><br /><P>If I add an item as per the Visual Basic example:<BR><table width="99%"><tr><td><pre class="BBcode">&nbsp;&nbsp; Set Item = Category.AddChildItem(PropertyItemDate, "DateItem", "26/01/2004")</pre></td></tr></table>Then the propertygrid contains an item with a Date/Time Picker<BR><BR>In my app, I dynamically add items from an ado recordset<BR><table width="99%"><tr><td><pre class="BBcode">&nbsp;&nbsp; Set Item = Category.AddChildItem(rs!PropertyItemType, rs!PropertyItemTitle, rs!PropertyItemValue)<BR>&nbsp;&nbsp; Item.Flags = rs!PropertyItemFlags</P><P>' Which, for a date field equates to:<BR>'&nbsp;&nbsp; Set Item = Category.AddChildItem(PropertyItemDate, "Date Created", "26/01/2004")<BR>'&nbsp;&nbsp; Item.Flags = ItemHasEdit<BR></pre></td></tr></table>However, the item in the propertygrid simply contains a date mask without the Date/Time Picker.</P><P>Further investigation revealed an undocumented PropertyItemFlags constant&nbsp;which does not appear in the help or the object browser.<BR><table width="99%"><tr><td><pre class="BBcode">Const ItemHasDTPicker = 5<BR>' The constant name is&nbsp;mine, not CodeJocks<BR></pre></td></tr></table></P><P>In order to use the date/time picker it appears that, after adding adding a PropertyItemDate child item, you must either<BR>a) Not set the PropertyItemFlags (the control will automatically set the flags to 5), or<BR>b) Set the PropertyItemFlags = 5<BR>Both elicit the same results.</P><P>&nbsp;</P><span style="font-size:10px"><br /><br />Edited by ianp</span>]]>
   </description>
   <pubDate>Wed, 25 Aug 2004 03:55:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1102&amp;PID=2874&amp;title=undocumented-feature-date-time-picker#2874</guid>
  </item> 
 </channel>
</rss>