<?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: How To Calculate Number of Days Between Two Dates</title><link>https://www.infopathdev.com:443/forums/thread/21172.aspx</link><pubDate>Sat, 23 Jun 2007 20:56:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21172</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21172.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=21172</wfw:commentRss><description>&lt;p&gt;This is fairly common and too bad that InfoPath has not put a function in to support this so you have to use script.&lt;/p&gt;&lt;p&gt;There are a couple different approaches but I have used a pretty simple vbscript using the DateDiff function. Here is a pretty good thread. &lt;a href="http://www.infopathdev.com/forums/thread/9236.aspx"&gt;http://www.infopathdev.com/forums/thread/9236.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;First if you have not used code yet is the syntax of referencing your fields and the second is using the Datediff function. You should be able to search on both and get the answers you need.&lt;/p&gt;&lt;p&gt;Here is a sample I had in the onload event to calculate 90 days in advance from today to show imminent items.&lt;/p&gt;&lt;p&gt;Pasting did not work so well so i have attached it.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>How To Calculate Number of Days Between Two Dates</title><link>https://www.infopathdev.com:443/forums/thread/21133.aspx</link><pubDate>Thu, 21 Jun 2007 18:41:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21133</guid><dc:creator>ultragc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21133.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=21133</wfw:commentRss><description>&lt;p&gt;I am trying to calculate the number of work days between to days.&amp;nbsp; Has anyone done something similar or have any suggestions on how I might be able to accomplish this?&amp;nbsp; Basically, I am testing a vacation request from that has a &amp;quot;from&amp;quot; and a &amp;quot;to&amp;quot; field.&amp;nbsp; A third field, called &amp;quot;days&amp;quot;, be populated with the number of days once both days are entered.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks in advance.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>