<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Validate Date Format Before Submitting to Library.</title><link>https://www.infopathdev.com:443/forums/thread/95652.aspx</link><pubDate>Tue, 04 Feb 2014 11:38:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95652</guid><dc:creator>wilkies0106aw</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95652.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=95652</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Mel,&lt;/p&gt;&lt;p&gt;Thanks - that seems to work. &lt;/p&gt;&lt;p&gt;All a little confusing until I stopped thinking&amp;nbsp;because I&amp;#39;m using a UK date format i.e. dd/mm/yyyyy. The only problem I&amp;#39;ve encountered with the form not submitting (as per best practice)&amp;nbsp;is that information isn&amp;#39;t always retained if you click out of the error dialog box that lets you know that the form will not be submitted, hence the validation rule.&lt;/p&gt;</description></item><item><title>Re: Validate Date Format Before Submitting to Library.</title><link>https://www.infopathdev.com:443/forums/thread/95648.aspx</link><pubDate>Tue, 04 Feb 2014 09:32:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95648</guid><dc:creator>Mel Clemente</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95648.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=95648</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;If your date picker control&amp;nbsp;is bound to a field that is of &amp;quot;Date&amp;quot; data type and a user enters a non-date value, your form would automatically see that as invalid data and wouldn&amp;#39;t allow submit. That&amp;#39;s best practice, actually - to make sure that the data type for all date fields are, well, Date.&lt;/p&gt;&lt;p&gt;If you still want to use a data validation rule to get around this, you can&amp;nbsp;set&amp;nbsp;the condition: [DateField]&amp;nbsp;is not blank and [DateField] does not match pattern \d\d\d\d-\d\d-\d\d (which is a custom pattern). Dates have XML values inf the format yyyy-mm-dd so anything the user enters that is not in that format will be treated as invalid data.&lt;/p&gt;&lt;p&gt;Hope that helps!&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Validate Date Format Before Submitting to Library.</title><link>https://www.infopathdev.com:443/forums/thread/95647.aspx</link><pubDate>Tue, 04 Feb 2014 09:32:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95647</guid><dc:creator>Mel Clemente</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95647.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=95647</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;If your date picker control&amp;nbsp;is bound to a field that is of &amp;quot;Date&amp;quot; data type and a user enters a non-date value, your form would automatically see that as invalid data and wouldn&amp;#39;t allow submit. That&amp;#39;s best practice, actually - to make sure that the data type for all date fields are, well, Date.&lt;/p&gt;&lt;p&gt;If you still want to use a data validation rule to get around this, you can&amp;nbsp;set&amp;nbsp;the condition: [DateField]&amp;nbsp;is not blank and [DateField] does not match pattern \d\d\d\d-\d\d-\d\d (which is a custom pattern). Dates have XML values inf the format yyyy-mm-dd so anything the user enters that is not in that format will be treated as invalid data.&lt;/p&gt;&lt;p&gt;Hope that helps!&amp;nbsp;&lt;/p&gt;</description></item><item><title>Validate Date Format Before Submitting to Library.</title><link>https://www.infopathdev.com:443/forums/thread/95550.aspx</link><pubDate>Fri, 31 Jan 2014 10:10:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95550</guid><dc:creator>wilkies0106aw</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95550.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=95550</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;All,&lt;/p&gt;&lt;p&gt;&amp;nbsp;Using InfoPath and SharePoint 2010.&lt;/p&gt;&lt;p&gt;Normally I do a very simple data validation against my form and fields, using a button control and simple rules to check that fields aren&amp;#39;t blank.&amp;nbsp; This works very well, is easy to implement and be used by users.&amp;nbsp;However in testing of a new form. The form&amp;nbsp;fell over&amp;nbsp;due to users, being&amp;nbsp;users.&lt;/p&gt;&lt;p&gt;The user&amp;nbsp;entered text in a&amp;nbsp;date picker control. Yes, the date picker&amp;nbsp;control has red&amp;nbsp;dashes around it, but it&amp;#39;s missed by the user. Since I check against the control being blank. The rules things job done. Something is in the&amp;nbsp;field.&lt;/p&gt;&lt;p&gt;Is there a rule setting I can use, if date is NOT a date - &amp;nbsp;stop? Otherwise I believe I&amp;#39;m going to have to use a regex pattern.&amp;nbsp;Lots of work for users, being users.&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;W&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>