<?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: Date Calculation</title><link>https://www.infopathdev.com:443/forums/thread/17341.aspx</link><pubDate>Sat, 08 Jul 2006 15:15:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17341</guid><dc:creator>Whitley</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17341.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17341</wfw:commentRss><description>hi,&lt;br /&gt;&lt;br /&gt;i have sucessfully to did it.&lt;br /&gt;thanks you very much.&lt;br /&gt;:)</description></item><item><title>Re: Date Calculation</title><link>https://www.infopathdev.com:443/forums/thread/17340.aspx</link><pubDate>Fri, 07 Jul 2006 10:11:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17340</guid><dc:creator>K.Ramana Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17340.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17340</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;this is vb.net code,&lt;br /&gt;&lt;br /&gt;Dim date1 As Date&lt;br /&gt;            Dim date2 As Date&lt;br /&gt;            Dim date3 As Date&lt;br /&gt;            Dim date4 As Date&lt;br /&gt;            Dim date5 As Date&lt;br /&gt;            Dim d As Date&lt;br /&gt;            date1 = Convert.ToDateTime(thisXDocument.DOM.selectSingleNode("/my:myFields/my:field1").text)&lt;br /&gt;            date2 = Convert.ToDateTime(thisXDocument.DOM.selectSingleNode("/my:myFields/my:field2").text)&lt;br /&gt;            date3 = CDate(date1)&lt;br /&gt;            date4 = CDate(date2)&lt;br /&gt;            Dim daysElapsed As Int32&lt;br /&gt;&lt;br /&gt;            daysElapsed = DateDiff("d", date3, date4)&lt;br /&gt;            thisXDocument.DOM.selectSingleNode("/my:myFields/my:field4").text = daysElapsed&lt;br /&gt;&lt;br /&gt;I hope this will help you,&lt;br /&gt;&lt;br /&gt;Thanks.&lt;br /&gt;</description></item><item><title>Re: Date Calculation</title><link>https://www.infopathdev.com:443/forums/thread/17339.aspx</link><pubDate>Fri, 07 Jul 2006 08:51:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17339</guid><dc:creator>Whitley</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17339.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17339</wfw:commentRss><description>hi, &lt;br /&gt; &lt;br /&gt;ok, but right now i am looking for some example code (vb.net) to calculate the date from user input.&lt;br /&gt;so hope someone kindly advise.&lt;br /&gt;thanks.</description></item><item><title>Re: Date Calculation</title><link>https://www.infopathdev.com:443/forums/thread/17338.aspx</link><pubDate>Fri, 07 Jul 2006 06:25:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17338</guid><dc:creator>Kalyan Gaddam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17338.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17338</wfw:commentRss><description>Hello, &lt;br /&gt;&lt;br /&gt;No both of them cannot work together. You can have any onething working. You cannot have managed code and Script working together.</description></item><item><title>Re: Date Calculation</title><link>https://www.infopathdev.com:443/forums/thread/17337.aspx</link><pubDate>Fri, 07 Jul 2006 06:09:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17337</guid><dc:creator>Whitley</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17337.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17337</wfw:commentRss><description>hi, &lt;br /&gt;&lt;br /&gt;May i know whether can put vbscript and vb.net together into visual studio.net?&lt;br /&gt;because i have load the form into infopath form into visual studio.net already.&lt;br /&gt;thanks in advance.&lt;br /&gt;</description></item><item><title>Re: Date Calculation</title><link>https://www.infopathdev.com:443/forums/thread/17336.aspx</link><pubDate>Thu, 06 Jul 2006 18:03:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17336</guid><dc:creator>Kalyan Gaddam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17336.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17336</wfw:commentRss><description>Hello, &lt;br /&gt;&lt;br /&gt;Please read the links below&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1711&gt;http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1711&lt;/a&gt;&lt;br /&lt;a target="_blank" href=http://enterprise-solutions.swits.net/infopath/adding-time-calculating-differences.htm&gt;http://enterprise-solutions.swits.net/infopath/adding-time-calculating-differences.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I hope it will help you.</description></item><item><title>Date Calculation</title><link>https://www.infopathdev.com:443/forums/thread/16829.aspx</link><pubDate>Thu, 06 Jul 2006 16:44:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:16829</guid><dc:creator>Whitley</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/16829.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=16829</wfw:commentRss><description>hi, &lt;br /&gt;&lt;br /&gt;May i know how to write the coding to calculate two differ date?&lt;br /&gt;Can anyone send the sample code/form to me.&lt;br /&gt;thanks.&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>