<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Date Picker validation</title><link>https://www.infopathdev.com:443/forums/thread/40615.aspx</link><pubDate>Wed, 15 Apr 2009 00:46:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40615</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40615.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=40615</wfw:commentRss><description>&lt;p&gt;It might be an interesting exercise to add a text box or expression box to the form that is bound to the same field as the date picker -- make sure they don&amp;#39;t have any date formats applied to them, that they just show the XML value.... see if you are getting the&amp;nbsp;&amp;#39;yyyy-mm-dd&amp;#39; format that IP expects...&lt;/p&gt;</description></item><item><title>Re: Date Picker validation</title><link>https://www.infopathdev.com:443/forums/thread/40516.aspx</link><pubDate>Fri, 10 Apr 2009 17:48:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40516</guid><dc:creator>SethMW</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40516.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=40516</wfw:commentRss><description>My IP form submits to a SQL Server 2008 datasource. I have fields in my DB that are type &amp;quot;date&amp;quot;. When I add this field to a form, as a date picker control I am getting bizarre behavior. 

If I type in a date (i.e. 4/10) and move focus to another control the date picker properly formats the date (4/10/2009), but the field is outlined in the dashed red line with a message &amp;quot;only text strings less than or equal to 10 character(s) allowed&amp;quot;, and this obviously prevents submission.

However, if I use the date selector button/popup and choose a date, such as &amp;quot;4/10/2009&amp;quot; everything works as expected.

Has anyone else run into this? Any suggestions?

I also happen to have a varchar(20) field that I mistakenly set up as a date picker on my form, and that behaves as expected. That is, I can type a date, tab out, and IP formats the date, and doesn&amp;#39;t show validation errors.

Obviously I can change my database to use just varchar columns, but I&amp;#39;d like to leave them as dates.</description></item></channel></rss>