<?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 : Datetime Picker - empty date ?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Suite Pro : Datetime Picker - empty date ?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 04:12:13 +0000</pubDate>
  <lastBuildDate>Mon, 15 Aug 2011 05:21:39 +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=18820</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[Datetime Picker - empty date ? :   Yeah I can understand why...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18820&amp;PID=65920&amp;title=datetime-picker-empty-date#65920</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 18820<br /><strong>Posted:</strong> 15 August 2011 at 5:21am<br /><br />Yeah I can understand why you will be best falling back to your usual date picker. <br><br>Personally I use the DTPicker from the "Microsoft Windows Common Controls-2 6.0 (SP6)" for the reasons I said above, which can be seen in my other post:&nbsp;<a href="http://forum.codejock.com/forum_posts.asp?TID=17827" target="_blank">http://forum.codejock.com/forum_posts.asp?TID=17827</a>]]>
   </description>
   <pubDate>Mon, 15 Aug 2011 05:21:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18820&amp;PID=65920&amp;title=datetime-picker-empty-date#65920</guid>
  </item> 
  <item>
   <title><![CDATA[Datetime Picker - empty date ? : Thanks, that works but im using...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18820&amp;PID=65918&amp;title=datetime-picker-empty-date#65918</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6775">stuc</a><br /><strong>Subject:</strong> 18820<br /><strong>Posted:</strong> 15 August 2011 at 4:32am<br /><br /><br>Thanks, that works but im using it in a form that has several instances of it plus a host of other controls.<br><br>I'll fallback to my usual date picker I think.<br><br><br>]]>
   </description>
   <pubDate>Mon, 15 Aug 2011 04:32:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18820&amp;PID=65918&amp;title=datetime-picker-empty-date#65918</guid>
  </item> 
  <item>
   <title><![CDATA[Datetime Picker - empty date ? : Hi stuc,Yeah I know about the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18820&amp;PID=65917&amp;title=datetime-picker-empty-date#65917</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 18820<br /><strong>Posted:</strong> 15 August 2011 at 4:21am<br /><br />Hi stuc,<br><br>Yeah I know about the lack of the keydown, keypress &amp; keyup on the DateTimePicker. I rarely use it due to the way it skins (you can't see the day text clearly in some instances). However as a workaround why don't you try this:<br><br><table width="99%"><tr><td><pre class="BBcode">Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer<br><br>Private Const VK_DELETE = &amp;H2E<br><br>Private Sub Form_Load()<br>&nbsp;&nbsp;&nbsp; With DateTimePicker<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Value = Format$(Date, "dd/mm/yyyy")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Format = xtpPickerCustom<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .CustomFormat = " "<br>&nbsp;&nbsp;&nbsp; End With<br>End Sub<br><br>Private Sub DateTimePicker_CloseUp()<br>&nbsp;&nbsp;&nbsp; DateTimePicker.Format = xtpPickerShortDate<br>End Sub<br><br>Private Sub Timer_Timer()<br>&nbsp;&nbsp;&nbsp; If CBool(GetAsyncKeyState(VK_DELETE)) Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With DateTimePicker<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Value = Format$(Date, "dd/mm/yyyy")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Format = xtpPickerCustom<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .CustomFormat = " "<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp; End If<br>End Sub<br></pre></td></tr></table><br><br>Set the timer to be 100 milliseconds, it's crude but works well.<br>]]>
   </description>
   <pubDate>Mon, 15 Aug 2011 04:21:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18820&amp;PID=65917&amp;title=datetime-picker-empty-date#65917</guid>
  </item> 
  <item>
   <title><![CDATA[Datetime Picker - empty date ? : Thanks fo rthe reply. This works...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18820&amp;PID=65916&amp;title=datetime-picker-empty-date#65916</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6775">stuc</a><br /><strong>Subject:</strong> 18820<br /><strong>Posted:</strong> 15 August 2011 at 4:07am<br /><br /><br>Thanks fo rthe reply.&nbsp; This works ok for when the field is first on the screen but I cant trap the delete key for when the user wants to delete the date.<br><br>I dont really want to have to put a "delete" button on screen to clear the field.<br><br><br>]]>
   </description>
   <pubDate>Mon, 15 Aug 2011 04:07:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18820&amp;PID=65916&amp;title=datetime-picker-empty-date#65916</guid>
  </item> 
  <item>
   <title><![CDATA[Datetime Picker - empty date ? :  Hi,  I found a piece of code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18820&amp;PID=65903&amp;title=datetime-picker-empty-date#65903</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 18820<br /><strong>Posted:</strong> 13 August 2011 at 2:27am<br /><br />Hi,<br><br>I found a piece of code I had posted a while back in the Controls forum on this. <br><br><table width="99%"><tr><td><pre class="BBcode">Private Sub Form_Load()<br>&nbsp;&nbsp;&nbsp; With dtpDateOfRequest<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Value = Format$(Date, "dd/mm/yyyy")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Format = xtpPickerCustom<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .CustomFormat = " "<br>&nbsp;&nbsp;&nbsp; End With<br>End Sub<br><br>Private Sub dtpDateOfRequest_CloseUp()<br>&nbsp;&nbsp;&nbsp; dtpDateOfRequest.Format = xtpPickerShortDate<br>End Sub<br></pre></td></tr></table>]]>
   </description>
   <pubDate>Sat, 13 Aug 2011 02:27:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18820&amp;PID=65903&amp;title=datetime-picker-empty-date#65903</guid>
  </item> 
  <item>
   <title><![CDATA[Datetime Picker - empty date ? : Yes it can, use the Custom setting...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18820&amp;PID=65902&amp;title=datetime-picker-empty-date#65902</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 18820<br /><strong>Posted:</strong> 13 August 2011 at 2:19am<br /><br />Yes it can, use the Custom setting that way you can then set the date field as blank. I am not in the office so can't post a code snippet, however if nobody else does I will post it on Monday morning. ]]>
   </description>
   <pubDate>Sat, 13 Aug 2011 02:19:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18820&amp;PID=65902&amp;title=datetime-picker-empty-date#65902</guid>
  </item> 
  <item>
   <title><![CDATA[Datetime Picker - empty date ? : I&amp;#039;d like to use the datetimepicker...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18820&amp;PID=65896&amp;title=datetime-picker-empty-date#65896</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6775">stuc</a><br /><strong>Subject:</strong> 18820<br /><strong>Posted:</strong> 12 August 2011 at 9:16am<br /><br /><br><br>I'd like to use the datetimepicker as a data entry field but the users must be able to leave the date empty?<br><br>Can this be done ?<br><br><br>]]>
   </description>
   <pubDate>Fri, 12 Aug 2011 09:16:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18820&amp;PID=65896&amp;title=datetime-picker-empty-date#65896</guid>
  </item> 
 </channel>
</rss>