<?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: Submitting a date field to SQL (via a procedure) with IP 2003 and JScript</title><link>https://www.infopathdev.com:443/forums/thread/32777.aspx</link><pubDate>Fri, 03 Oct 2008 17:20:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32777</guid><dc:creator>jaden403</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32777.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=32777</wfw:commentRss><description>&lt;p&gt;Thanks for the response, but SQL still won&amp;#39;t accept the parameter.&amp;nbsp; I keep getting the same error: &lt;/p&gt;
&lt;p&gt;&amp;quot;Object doesn&amp;#39;t support this property or method&amp;quot;.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;What I am doing is this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;var date = XDocument.DOM.selectSingleNode(&amp;quot;//my:dateTimeStamp&amp;quot;).text;&lt;/p&gt;
&lt;p&gt;Then I pass it as a parameter.&amp;nbsp; But date.toDateString() gives the error above.&amp;nbsp; What am I doing wrong here?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Submitting a date field to SQL (via a procedure) with IP 2003 and JScript</title><link>https://www.infopathdev.com:443/forums/thread/32758.aspx</link><pubDate>Fri, 03 Oct 2008 09:17:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32758</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32758.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=32758</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Passing the Data parameter format should be same as SQL Data type format. SQL Date data type format should be equal to ‘MM/DD/YYYY HH:MM:SS AM&amp;#39;. If we pass different format then it will gives the error. &lt;/p&gt;
&lt;p&gt;For this you have convert into ToString() format of Date format then you will get SQL date data type format. [toDate().ToString()]&lt;/p&gt;</description></item><item><title>Submitting a date field to SQL (via a procedure) with IP 2003 and JScript</title><link>https://www.infopathdev.com:443/forums/thread/32742.aspx</link><pubDate>Thu, 02 Oct 2008 21:45:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32742</guid><dc:creator>jaden403</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32742.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=32742</wfw:commentRss><description>&lt;p&gt;In my form I am trying to pass a date to a stored procedure.&amp;nbsp; However, everytime I submit I get an error because of the formatting of the date: 2008-10-2T15:53:51.&amp;nbsp; I have tried using the toDate() method, but the form always throws an error about how the method is not supported.&amp;nbsp; So my question is how do you pass a date to SQL in InfoPath and JScript?&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am currently writing to SQL using a variable and passing it to my ADO connection.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;var date =&amp;nbsp;&amp;nbsp;&amp;quot;procName &amp;quot; + parameters to pass, etc;&lt;/p&gt;
&lt;p&gt;The above&amp;nbsp;works in all cases except when trying to&amp;nbsp;pass a date as a parameter.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;What is&amp;nbsp;the best way around this? &lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item></channel></rss>