<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>How can I force users to pick the first day of month and the last day of month? Please help (Infopath 2007)</title><link>https://www.infopathdev.com:443/forums/thread/58095.aspx</link><pubDate>Tue, 17 Aug 2010 19:02:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58095</guid><dc:creator>bahrom7893</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58095.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=58095</wfw:commentRss><description>&lt;p&gt;I have two datepickers in my database form template. When&amp;nbsp;a user&amp;nbsp;runs the query,&amp;nbsp;he/she&amp;nbsp;sees 3 columns with values, then&amp;nbsp;2 datepickers and then another column with values. Everything is working fine, but I&amp;#39;m having trouble with data validation in date pickers. The xml date is in this format: 2010-08-01T00:00:00, and I used a rule: &lt;strong&gt;Start_Date doesn&amp;#39;t match pattern with&lt;/strong&gt; &lt;strong&gt;2[any three digits]-[any two digits]-01[any amount of any characters]&lt;/strong&gt;, so my sample shows &lt;strong&gt;2XXX-XX-01XXXXXX&lt;/strong&gt;,etc. However, when I preview the template and click on &amp;quot;Run Query&amp;quot;, the date &lt;strong&gt;2010-08-01T00:00:00&lt;/strong&gt; (from a sql database) has a red outline and I get a data validation error. When I pick the same date on the same cell on the form from a date picker, I still have &lt;strong&gt;2010-08-01T00:00:00&lt;/strong&gt; but without a validation error. So every time I run a query, I have to click on the first day of some month using the datepicker, otherwise I get a validation error, and I am going to have several thousand of these cells later on. &lt;/p&gt;
&lt;p&gt;So for the first date picker users have to be able to enter:&lt;/p&gt;
&lt;p&gt;08/01/10&lt;/p&gt;
&lt;p&gt;08/01/2010&lt;/p&gt;
&lt;p&gt;8/1/10&lt;/p&gt;
&lt;p&gt;8/1/2010&lt;/p&gt;
&lt;p&gt;08/1/10&lt;/p&gt;
&lt;p&gt;08/1/2010&lt;/p&gt;
&lt;p&gt;8/01/10&lt;/p&gt;
&lt;p&gt;8/01/2010&lt;/p&gt;
&lt;p&gt;or any other popular&amp;nbsp;&amp;quot;month date year&amp;quot; format and&amp;nbsp;also pick a date from the date picker and get a validation error only if they pick/enter anything except the first day of any month of any year. I&amp;#39;m only interested in the first day.&lt;/p&gt;
&lt;p&gt;The second date picker should work the&amp;nbsp;same way, only instead of the first day of month I need them to enter the last day of any month of any year.&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Bahrom&lt;/p&gt;</description></item></channel></rss>