<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Getting NAN when attempting to dind difference of two dates</title><link>https://www.infopathdev.com:443/forums/thread/118833.aspx</link><pubDate>Thu, 19 Apr 2018 08:10:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118833</guid><dc:creator>OrangeJuice</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118833.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=118833</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks Hilary, I&amp;#39;ve seen that post and was hoping there was a simpler method, a bit of a risk investing more time as the solution may not work for me as I need to used current day.&lt;/p&gt;&lt;p&gt;Appreciate your help.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Getting NAN when attempting to dind difference of two dates</title><link>https://www.infopathdev.com:443/forums/thread/118824.aspx</link><pubDate>Wed, 18 Apr 2018 15:06:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118824</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118824.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=118824</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Unfortunately, InfoPath has no out of the box date diff function. Here&amp;#39;s a link to one way to do this:&lt;br /&gt;&lt;a href="http://www.bizsupportonline.net/infopath2007/calculate-date-difference-infopath-rules-formulas.htm"&gt;http://www.bizsupportonline.net/infopath2007/calculate-date-difference-infopath-rules-formulas.htm&lt;/a&gt;&lt;/p&gt;&lt;p&gt;You can also do this using code or qRules.&lt;/p&gt;</description></item><item><title>Getting NAN when attempting to dind difference of two dates</title><link>https://www.infopathdev.com:443/forums/thread/118821.aspx</link><pubDate>Wed, 18 Apr 2018 09:40:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118821</guid><dc:creator>OrangeJuice</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118821.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=118821</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi There&lt;br /&gt;&lt;br /&gt;I want to be able to display the duration in days between todays date and a stored date. I am using a secondary datasorce linked to a SharePoint List. &lt;/p&gt;&lt;p&gt;In the list I&amp;#39;ve created 3 columns 1. TimeStamp&amp;nbsp;(date type)&amp;nbsp;2. TodayDate (Single Line of Text) . Lapsed (Single Line of Text)&lt;/p&gt;&lt;p&gt;In InfoPath I&amp;#39;ve added a repeating table form the secondary datasource and pulled in the 3 fields. Then&amp;nbsp;changed the controls in InfoPath:&lt;/p&gt;&lt;p&gt;TimeStamp - Textfield,&amp;nbsp; (formatted as Date - 14 March 2001)&lt;/p&gt;&lt;p&gt;Today - calculated field and set default to TodayDate (using fx)&amp;nbsp; (formatted as Date - 14 March 2001)&lt;/p&gt;&lt;p&gt;&amp;nbsp;Lapsed - calculated field and set to TodayDate - TimeStamp&lt;/p&gt;&lt;p&gt;Unfortunately I get NAN as a result in the Lapsed calculated column. (attached screenshot)&lt;/p&gt;&lt;p&gt;How can I get this to work? Do I need to use substring in some way?&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>