<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Calculating time</title><link>https://www.infopathdev.com:443/forums/thread/73634.aspx</link><pubDate>Mon, 09 Jan 2012 03:27:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73634</guid><dc:creator>Jo-Anne Alfafara</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73634.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=73634</wfw:commentRss><description>&lt;p&gt;Hi Mark B,&lt;/p&gt;
&lt;p&gt;What data types are you using for the Start Time and End Time? The now() function will work but try using the dateTime data type and select a format for Time only.&lt;/p&gt;</description></item><item><title>Calculating time</title><link>https://www.infopathdev.com:443/forums/thread/73632.aspx</link><pubDate>Sun, 08 Jan 2012 20:58:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73632</guid><dc:creator>Mark B</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73632.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=73632</wfw:commentRss><description>&lt;p&gt;Hi first let me say I am very new to this both infopath and any sort of coding so be nice.&lt;/p&gt;
&lt;p&gt;I am creating a check form which requires the time taken to complete the task shown at the bottom of the form, I have managed to get it to work if the person filling in the form enters the start and end times manually, however to stop people putting any times my boss wants the start and end times entered when&amp;nbsp;a button is clicked, again I have worked out how to do that&amp;nbsp;by using the button to set the&amp;nbsp;start and end time fields with the&amp;nbsp;now() function. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;The problem I have&amp;nbsp;is adding the buttons&amp;nbsp;breaks my expression for calcuating the time, as this is expecting the &amp;#39;Time&amp;#39; format *09:46, unfortunately the now() function picks up the data as well and there for gives me a NaN error.&lt;/p&gt;
&lt;p&gt;So both work perfectly OK seperatly but not when I try to combine them&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Is the alternative in InfoPath to the now() function that only picks up the time and not the date?????? or does anyone have any other ideas?&lt;/p&gt;</description></item></channel></rss>