<?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: DatePicker validation issue</title><link>https://www.infopathdev.com:443/forums/thread/63233.aspx</link><pubDate>Sun, 16 Jan 2011 11:59:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63233</guid><dc:creator>praveenbattula</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63233.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63233</wfw:commentRss><description>Check this out! This may help someone.
http://praveenbattula.blogspot.com/2011/01/date-validation-in-infopath-forms.html</description></item><item><title>Re: DatePicker validation issue</title><link>https://www.infopathdev.com:443/forums/thread/57872.aspx</link><pubDate>Wed, 11 Aug 2010 09:57:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57872</guid><dc:creator>Ramesh.N</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57872.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=57872</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;i used this for date validation -&amp;gt; \d{4}-\d{1,2}-\d{1,2}&lt;br /&gt;The display format used is mm/dd/yyyy .i too face same issue what faced I even tried to validate this through custom script but before the 
scripting code is fired the &amp;#39;02/31/2005&amp;#39; input is changed to &amp;#39;3/3/2005&amp;#39; 
and the validation code Won&amp;#39;t return any error since &amp;#39;3/3/2005&amp;#39; is a 
valid date. did get any solution for this. if u get, please tell&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: DatePicker validation issue</title><link>https://www.infopathdev.com:443/forums/thread/6573.aspx</link><pubDate>Mon, 04 Apr 2005 12:36:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6573</guid><dc:creator>Shanthi Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6573.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6573</wfw:commentRss><description>I would suggest using the Date picker control and having some onBeforeChange validator code.&lt;br /&gt;&lt;br /&gt;Shanthi&lt;br /&gt;InfoPathDev India</description></item><item><title>Re: DatePicker validation issue</title><link>https://www.infopathdev.com:443/forums/thread/6572.aspx</link><pubDate>Fri, 01 Apr 2005 14:29:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6572</guid><dc:creator>Rip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6572.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6572</wfw:commentRss><description>One of my InfoPath forms has a requirement for very robust and complete validation to include leap year checking and last date in month checking.  From reading this thread it seems to me that instead of using the date picker control I will need to use a simple text box and do data validation using some pattern matching.  Am I interpreting the information in this thread correctly?  Thanks.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Richard T. Henry&lt;br /&gt;Lewisberry, PA, USA&lt;br /&gt;riphenry@gmail.com</description></item><item><title>Re: DatePicker validation issue</title><link>https://www.infopathdev.com:443/forums/thread/6571.aspx</link><pubDate>Sat, 12 Mar 2005 12:12:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6571</guid><dc:creator>amish</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6571.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6571</wfw:commentRss><description>Hi Patrick,&lt;br /&gt;            Thanks a lot for ur prompt reply.:-)))&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Amish</description></item><item><title>Re: DatePicker validation issue</title><link>https://www.infopathdev.com:443/forums/thread/6570.aspx</link><pubDate>Fri, 11 Mar 2005 01:33:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6570</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6570.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6570</wfw:commentRss><description>Note: is the behavior of the Windows date parsing code (NLS), and the behavior will occur in many different applications.</description></item><item><title>Re: DatePicker validation issue</title><link>https://www.infopathdev.com:443/forums/thread/6569.aspx</link><pubDate>Thu, 10 Mar 2005 21:20:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6569</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6569.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6569</wfw:commentRss><description>One more from MS (with feeling):&lt;br /&gt;&lt;br /&gt;You could probably make a case that this is a bug because there is no such thing as Feb 31 and we should parse this correctly before we serialize it.   For example, if I meant to type 3/31, but typed 2/31 instead, I won#%92t get an error and will probably be surprised later when I get 3/3 instead of 3/31.</description></item><item><title>Re: DatePicker validation issue</title><link>https://www.infopathdev.com:443/forums/thread/6568.aspx</link><pubDate>Thu, 10 Mar 2005 21:04:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6568</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6568.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6568</wfw:commentRss><description>More info from MS:&lt;br /&gt;&lt;br /&gt;A little more detail on how this is stored internally. &lt;br /&gt;&lt;br /&gt;The programming language stores the date as an integer relative to some arbitrary past date (something like January 1, 1976).  The friendly representation is according to a serialization and deserialization scheme.&lt;br /&gt;&lt;br /&gt;The serialization schema is roughly (YYYY-1976)*366+MM*30+DD.  I say roughly because it#%92s actually a more complicated case statement that takes varying month days into account and leap years in the February case.&lt;br /&gt;&lt;br /&gt;The deserialization is similar.&lt;br /&gt;&lt;br /&gt;So, when 2/31/2005 is serialized it#%92s actually something like 63351 (random number) which then gets deserialized to 3/3/2005.</description></item><item><title>Re: DatePicker validation issue</title><link>https://www.infopathdev.com:443/forums/thread/6567.aspx</link><pubDate>Thu, 10 Mar 2005 20:56:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6567</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6567.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6567</wfw:commentRss><description>Microsoft responded:&lt;br /&gt;&lt;br /&gt;Cause there is no 2/31, ever? Really, cause it#%92s three days beyond the last date. You might see other behavior for 2/40. But specifically, we use Windows APIs to parse the dates, and 3/3/2005 is the value it returns when the user types in 2/31.&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: DatePicker validation issue</title><link>https://www.infopathdev.com:443/forums/thread/6566.aspx</link><pubDate>Thu, 10 Mar 2005 20:43:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6566</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6566.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6566</wfw:commentRss><description>Hi Amish,&lt;br /&gt;&lt;br /&gt;Looks like you found a good bug in InfoPath. :) &lt;br /&gt;&lt;br /&gt;I sent e-mail to the InfoPath team, but my guess is that this is pretty low priority and it may make sense to process this way for other reasons (which I am unaware of).&lt;br /&gt;&lt;br /&gt;Good find!&lt;br /&gt;</description></item><item><title>DatePicker validation issue</title><link>https://www.infopathdev.com:443/forums/thread/4579.aspx</link><pubDate>Thu, 10 Mar 2005 12:47:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4579</guid><dc:creator>amish</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4579.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4579</wfw:commentRss><description>Hi folks,&lt;br /&gt;         &lt;br /&gt;Here is the Problem.&lt;br /&gt; &lt;br /&gt;                    I have a Date Control which needs to accept valid date from the user.I am validating date's using Regular expression.&lt;br /&gt;&lt;br /&gt;The following is the Regular expression used -&amp;gt; \d{4}-\d{1,2}-\d{1,2}&lt;br /&gt;The display format used is mm/dd/yyyy .&lt;br /&gt;&lt;br /&gt;It work fine in all scenarion's except for one scenario.&lt;br /&gt;When '02/31/2005' is entered, NO error message is displayed and &lt;br /&gt;Date is auto changed to '3/3/2005'.&lt;br /&gt;&lt;br /&gt;I even tried to validate this through custom script but before the scripting code is fired the '02/31/2005' input is changed to '3/3/2005' and the validation code Won't return any error since '3/3/2005' is a valid date.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Is there any way we can validate for '02/31/2005' in Infopath either through use of RegEx or through any other means ?&lt;br /&gt;&lt;br /&gt;Is this a known bug with Infopath?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Amish&lt;br /&gt;&lt;br /&gt;Amish</description></item></channel></rss>