<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Converting time to Decimal</title><link>https://www.infopathdev.com:443/forums/thread/95151.aspx</link><pubDate>Fri, 10 Jan 2014 18:59:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95151</guid><dc:creator>recono1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95151.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=95151</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Yes the field has a 12:30 in it &lt;/p&gt;</description></item><item><title>Re: Converting time to Decimal</title><link>https://www.infopathdev.com:443/forums/thread/95147.aspx</link><pubDate>Fri, 10 Jan 2014 17:41:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95147</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95147.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=95147</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;So it sounds like the &lt;strong&gt;round(100 * (substring-after(OperationalTime, &amp;quot;:&amp;quot;)) / 60) &lt;/strong&gt;part has an issue of some sort. Are you sure that the portion of the value after the &lt;strong&gt;:&lt;/strong&gt; is just a number and nothing else? (No AM/PM, for instance)?&lt;/p&gt;</description></item><item><title>Converting time to Decimal</title><link>https://www.infopathdev.com:443/forums/thread/95112.aspx</link><pubDate>Thu, 09 Jan 2014 20:13:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95112</guid><dc:creator>recono1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95112.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=95112</wfw:commentRss><description>&lt;p&gt;I am trying to do this in InfoPath 2013 and it is not working I have a field with a time OperationalTime and it =&amp;#39;s 12:30&amp;nbsp; in the conversion field I have it set to double and the formula is : (100 * substring-before(OperationalTime, &amp;quot;:&amp;quot;) + (substring-after(OperationalTime, &amp;quot;:&amp;quot;) / 60) * 100) / 100&amp;nbsp; All I am getting is NaN in the field&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I also tried concat(substring-before(OperationalTime, &amp;quot;:&amp;quot;), &amp;quot;.&amp;quot;, round(100 * (substring-after(OperationalTime, &amp;quot;:&amp;quot;)) / 60)) and&amp;nbsp;I get 12.NaN&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;When&amp;nbsp;I just run substring-after(OperationalTime, &amp;quot;:&amp;quot;) it returns 30:00 instead of 30&amp;nbsp;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>