<?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>SQL Database Integration</title><link>https://www.infopathdev.com:443/forums/47.aspx</link><description>For questions concerning issues in the integration of SQL and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: sql date converted to infopath date</title><link>https://www.infopathdev.com:443/forums/thread/65338.aspx</link><pubDate>Tue, 22 Mar 2011 07:42:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65338</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65338.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=65338</wfw:commentRss><description>&lt;p&gt;I think you&amp;#39;ve misunderstood your reasearch.&amp;nbsp; The issue is most likely that the node you&amp;#39;re trying to modify has an xsi:nil attribute that has to be removed before you set its value.&amp;nbsp; If you search this forum for xsi:nil, you should find examples of how to to this.&lt;/p&gt;
&lt;p&gt;In order to put the date in the right format, you need to convert the DateTime to an ISO string with &lt;strong&gt;.ToString(&amp;quot;s&amp;quot;)&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>sql date converted to infopath date</title><link>https://www.infopathdev.com:443/forums/thread/65331.aspx</link><pubDate>Mon, 21 Mar 2011 19:52:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65331</guid><dc:creator>gr8fasushi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65331.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=65331</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;hi all,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;m having some difficulties converting a sql date back to a date that infopath can use. The date in Sql server is 2011-03-01 00:00:00:000&lt;/p&gt;&lt;p&gt;I&amp;#39;m trying to convert this to DateTime back into an infopath datepicker field but it&amp;#39;s giving me an error of &amp;quot;Schema validation found non-data type errors.&amp;quot; &lt;/p&gt;&lt;p&gt;my code is this:&lt;/p&gt;&lt;p&gt;nav.SelectSingleNode(&amp;quot;/my:myFields/my:sLayout/my:dpExpirationDate&amp;quot;, NamespaceManager).SetValue(Convert.ToDateTime(reader(&amp;quot;ExpirationDate&amp;quot;))) &lt;/p&gt;&lt;p&gt;I want the date stored in sql server to be populated in my infopath form in a datepicker field. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;My research found that this error can be caused if the value is nil in the database, however, there is clearly a date and time in the sql field.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve tried converting the data using CDate, etc without success.&amp;nbsp; Can someone point me in the right direction?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;thanks &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>