<?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: Make section visible depending on current time</title><link>https://www.infopathdev.com:443/forums/thread/77933.aspx</link><pubDate>Tue, 24 Apr 2012 15:11:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77933</guid><dc:creator>andrewb</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77933.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77933</wfw:commentRss><description>&lt;p&gt;DateTimeType - I didn&amp;#39;t see one to pick from the lsit just for Time - I will try out Text, thanks&lt;/p&gt;</description></item><item><title>Re: Make section visible depending on current time</title><link>https://www.infopathdev.com:443/forums/thread/77922.aspx</link><pubDate>Tue, 24 Apr 2012 14:45:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77922</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77922.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77922</wfw:commentRss><description>&lt;p&gt;What is the data type of the field you are setting? You may need to change it to Time or Text.&lt;/p&gt;</description></item><item><title>Re: Make section visible depending on current time</title><link>https://www.infopathdev.com:443/forums/thread/77914.aspx</link><pubDate>Tue, 24 Apr 2012 14:09:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77914</guid><dc:creator>andrewb</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77914.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77914</wfw:commentRss><description>&lt;p&gt;Hilary - I implemented the substring-after(now(), &amp;quot;T&amp;quot;) and it shows the time only which is what I&amp;nbsp;wanted! However, when I published to SP and tried to submit the form I got an error stating, &amp;quot;Only date or date and time allowed&amp;quot;. Does this mean I can&amp;#39;t just have time?&lt;/p&gt;</description></item><item><title>Re: Make section visible depending on current time</title><link>https://www.infopathdev.com:443/forums/thread/77065.aspx</link><pubDate>Mon, 02 Apr 2012 18:03:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77065</guid><dc:creator>andrewb</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77065.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77065</wfw:commentRss><description>&lt;p&gt;Thanks so much! I did the last thing you mentioned, just returning the current time using the substring on my currentTime field. Set my warning message (section) to display if currentTime is greater than &amp;quot;17:00:00&amp;quot;. Works great! Thanks again.&lt;/p&gt;</description></item><item><title>Re: Make section visible depending on current time</title><link>https://www.infopathdev.com:443/forums/thread/77040.aspx</link><pubDate>Fri, 30 Mar 2012 21:49:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77040</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77040.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77040</wfw:commentRss><description>&lt;p&gt;Hi - You&amp;#39;ll first want to make sure in your rules you are setting your currentTime field to now() when the user submits - so that it has the time when the button is clicked.&lt;/p&gt;
&lt;p&gt;To get just the time, you need to use substring-after - it would be something like substring-after(&lt;em&gt;&lt;u&gt;currentTime&lt;/u&gt;&lt;/em&gt;, &amp;quot;T&amp;quot;) - IP date time is ISO, has a T between the date and the time....&lt;/p&gt;
&lt;p&gt;I guess you could also do something like currentTime &amp;lt; concat(today(), &amp;quot;T17:00:00&amp;quot;) - you&amp;#39;ll need to experiment a bit. Oh, and you could just set your currentTime field to a substring-after(now(), &amp;quot;T&amp;quot;), so it does just have the time....&lt;/p&gt;</description></item><item><title>Re: Make section visible depending on current time</title><link>https://www.infopathdev.com:443/forums/thread/77039.aspx</link><pubDate>Fri, 30 Mar 2012 19:54:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77039</guid><dc:creator>andrewb</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77039.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77039</wfw:commentRss><description>&lt;p&gt;Currently I have a &lt;strong&gt;currentTime&lt;/strong&gt; field where the Default Value = now()&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Then I have a section with the message. I&amp;#39;m thinking I need to set a Formatting Rule on the section, something like if &lt;strong&gt;currentTime&lt;/strong&gt; &lt;em&gt;is less than&lt;/em&gt; 5pm &amp;quot;Hide this control&amp;quot;. &lt;/p&gt;
&lt;p&gt;How would I write that? currentTime &amp;lt; 17:00:00&amp;nbsp;&amp;nbsp; ???&lt;/p&gt;
&lt;p&gt;I know that doesn&amp;#39;t work, but I think I&amp;#39;m onto something?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Make section visible depending on current time</title><link>https://www.infopathdev.com:443/forums/thread/77038.aspx</link><pubDate>Fri, 30 Mar 2012 19:12:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77038</guid><dc:creator>andrewb</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77038.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77038</wfw:commentRss><description>&lt;p&gt;Hi all, first post.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;m designing a form here at work in IP2010 that will be published to SP2010 site.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This is what I&amp;#39;m looking for.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If user hits submit on the form, the logic should check the current time. If current time is greater than 5:00pm Eastern time, a message pops up saying, &amp;quot;it is after 5pm your request will not be processed until next business day etc&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any idea on how to go about this?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks in advance!&lt;/p&gt;</description></item></channel></rss>