<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: now() function question</title><link>https://www.infopathdev.com:443/forums/thread/121047.aspx</link><pubDate>Fri, 31 May 2019 19:33:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121047</guid><dc:creator>Travis_H</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121047.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=121047</wfw:commentRss><description>Perfect! It worked!

THANKS</description></item><item><title>Re: now() function question</title><link>https://www.infopathdev.com:443/forums/thread/121046.aspx</link><pubDate>Fri, 31 May 2019 19:06:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121046</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121046.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=121046</wfw:commentRss><description>Sorry - add seconds, not minutes: concat(number(substring(xdDate:AddSeconds(xdDate:Now(), 10800), 9, 2)), &amp;quot;_&amp;quot;, number(substring(xdDate:AddSeconds(xdDate:Now(), 10800), 6, 2)), &amp;quot;_&amp;quot;, number(substring(xdDate:AddSeconds(xdDate:Now(), 10800), 3, 2)), &amp;quot;_&amp;quot;, substring(xdDate:AddSeconds(xdDate:Now(), 10800), 12, 5))</description></item><item><title>Re: now() function question</title><link>https://www.infopathdev.com:443/forums/thread/121045.aspx</link><pubDate>Fri, 31 May 2019 18:59:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121045</guid><dc:creator>Travis_H</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121045.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=121045</wfw:commentRss><description>Thanks

I keep getting an error.. can you show me how that would look in the function in the message I sent above?</description></item><item><title>Re: now() function question</title><link>https://www.infopathdev.com:443/forums/thread/121044.aspx</link><pubDate>Fri, 31 May 2019 18:48:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121044</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121044.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=121044</wfw:commentRss><description>You should be able to use the addMinutes function to add 3 hrs to a datetime. Let me know if you need more info.</description></item><item><title>Re: now() function question</title><link>https://www.infopathdev.com:443/forums/thread/121042.aspx</link><pubDate>Fri, 31 May 2019 18:42:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121042</guid><dc:creator>Travis_H</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121042.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=121042</wfw:commentRss><description>Hi Hilary,

   The function you wrote worked for me. 

&amp;quot;concat(number(substring(now(), 9, 2)), &amp;quot;_&amp;quot;, number(substring(now(), 6, 2)), &amp;quot;_&amp;quot;, number(substring(now(), 3, 2)), &amp;quot;_&amp;quot;, substring(now(), 12, 5))&amp;quot;

Just one more piece that I need help with. 

My SharePoint Sever is 3 hrs off from my time.  Normally I would add &amp;#39;+(3/24)&amp;#39; to the end of a Now() function, but I can&amp;#39;t get that to work. 

So how would I be able to increase the time piece of your function by 3 hours?</description></item><item><title>Re: now() function question</title><link>https://www.infopathdev.com:443/forums/thread/105098.aspx</link><pubDate>Mon, 11 Jan 2016 01:32:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105098</guid><dc:creator>rulermon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105098.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=105098</wfw:commentRss><description>You are a genius the only thing I would add to this is that if you copy and past his code into an existing concat remove one parantacy from the front and one paranthacy from the end. BUT THANK YOU SO MUCH.... example of it working concat(Node, &amp;quot;_Sweep&amp;quot;, &amp;quot;_&amp;quot;, number(substring(now(), 6, 2)), &amp;quot;-&amp;quot;, number(substring(now(), 9, 2)), &amp;quot;-&amp;quot;, number(substring(now(), 1, 4)), &amp;quot;_&amp;quot;, PM Tech #, &amp;quot;.xls&amp;quot;)

SO if you just want to copy it into your concat copy that:         number(substring(now(), 6, 2)), &amp;quot;-&amp;quot;, number(substring(now(), 9, 2)), &amp;quot;-&amp;quot;, number(substring(now(), 1, 4)),
Be sure to have a space before any needed comma and only have one comma at the end before the next set of text/field.</description></item><item><title>Re: now() function question</title><link>https://www.infopathdev.com:443/forums/thread/102728.aspx</link><pubDate>Wed, 03 Jun 2015 13:14:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102728</guid><dc:creator>mattderby</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102728.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=102728</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Hilary Stoupa:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;&amp;nbsp;I&amp;#39;d guess you have something else setting the field? Maybe check it out in the rule inspector.&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;Hi Hilary,

&lt;p&gt;Thanks so much Hilary - got it all working!   Very helpful advice on here - thanks :)&lt;/p&gt;</description></item><item><title>Re: now() function question</title><link>https://www.infopathdev.com:443/forums/thread/102722.aspx</link><pubDate>Tue, 02 Jun 2015 19:52:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102722</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102722.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=102722</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;d guess you have something else setting the field? Maybe check it out in the rule inspector.&lt;/p&gt;</description></item><item><title>Re: now() function question</title><link>https://www.infopathdev.com:443/forums/thread/102721.aspx</link><pubDate>Tue, 02 Jun 2015 19:43:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102721</guid><dc:creator>mattderby</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102721.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=102721</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Hilary Stoupa:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;&amp;nbsp;NaN = Not a Number. You are using number(substring(now(), 12, 5). The time has a &amp;quot;:&amp;quot; in it - thus is not a number. Try substring(now(),12,5) instead.&lt;/p&gt;&lt;p&gt;If you want underscores instead:&lt;/p&gt;&lt;p&gt;concat(number(substring(now(), 9, 2)), &amp;quot;_&amp;quot;, number(substring(now(), 6, 2)), &amp;quot;_&amp;quot;, number(substring(now(), 3, 2)), &amp;quot;_&amp;quot;, substring(now(), 12, 5), &amp;quot;-&amp;quot;, userName())&amp;nbsp;&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;
&lt;p&gt;Hi Hilary&lt;/p&gt;

&lt;p&gt;Fantastic thanks - I&amp;#39;m at home now but can&amp;#39;t wait to test this tomorrow at work!&lt;/p&gt;

&lt;p&gt;Just to note though - even though my formula has slashes in it &amp;quot;/&amp;quot; it actually comes up with underscores instead!  I don&amp;#39;t want underscores, I want slashes.... any idea why the slashes don&amp;#39;t work? (and it automatically subs them for underscores?)&lt;/p&gt;</description></item><item><title>Re: now() function question</title><link>https://www.infopathdev.com:443/forums/thread/102720.aspx</link><pubDate>Tue, 02 Jun 2015 19:25:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102720</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102720.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=102720</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;NaN = Not a Number. You are using number(substring(now(), 12, 5). The time has a &amp;quot;:&amp;quot; in it - thus is not a number. Try substring(now(),12,5) instead.&lt;/p&gt;&lt;p&gt;If you want underscores instead:&lt;/p&gt;&lt;p&gt;concat(number(substring(now(), 9, 2)), &amp;quot;_&amp;quot;, number(substring(now(), 6, 2)), &amp;quot;_&amp;quot;, number(substring(now(), 3, 2)), &amp;quot;_&amp;quot;, substring(now(), 12, 5), &amp;quot;-&amp;quot;, userName())&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: now() function question</title><link>https://www.infopathdev.com:443/forums/thread/102719.aspx</link><pubDate>Tue, 02 Jun 2015 19:13:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102719</guid><dc:creator>mattderby</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102719.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=102719</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Hilary Stoupa:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;I&amp;#39;m confused as to what you are trying to do and what your desired result is - can you tell me what you want the outcome to look like (your formula has &amp;quot;/&amp;quot; in it, and there are none in your output, so I&amp;#39;m sort of baffled) and attach a sample form under the options tab?&lt;/p&gt;&lt;p&gt;Thanks!&amp;nbsp;&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;

Hi Hilary

&lt;p&gt;Thanks for taking the time to try and help!&lt;/p&gt;

&lt;p&gt;I&amp;#39;m using Scott&amp;#39;s formula on the 4th post - so the &amp;quot;/&amp;quot; is there from that.  However as you can see from my output - it comes up with underscores instead, although that&amp;#39;s not my main problem...&lt;/p&gt;

&lt;p&gt;My desired result is to get the time (not the seconds though) added to the filename as well as the month and date (with username after).  Using Scott&amp;#39;s formula I successfully got the date and month working.  However I couldn&amp;#39;t get the time to work.  I tried the numbers you suggested - but that didn&amp;#39;t work either.  This is my formula:&lt;/p&gt;

&lt;p&gt;concat(number(substring(now(), 9, 2)), &amp;quot;/&amp;quot;, number(substring(now(), 6, 2)), &amp;quot;/&amp;quot;, number(substring(now(), 3, 2)), &amp;quot;/&amp;quot;, number(substring(now(), 12, 5)), &amp;quot;-&amp;quot;, Username)&lt;/p&gt;

&lt;p&gt;But the 12 and 5 don&amp;#39;t seem to work - it results in the &lt;i&gt;NaN&lt;/i&gt;.  So I get 28_5_15_NaN-username but I want something like 28_5_15_08_10-username (in an ideal world I&amp;#39;d have 28/5/15-08:10-username)&lt;/p&gt;

&lt;p&gt;Can you or anyone help get the time working?  Thanks :)&lt;/p&gt;</description></item><item><title>Re: now() function question</title><link>https://www.infopathdev.com:443/forums/thread/102703.aspx</link><pubDate>Mon, 01 Jun 2015 19:52:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102703</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102703.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=102703</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m confused as to what you are trying to do and what your desired result is - can you tell me what you want the outcome to look like (your formula has &amp;quot;/&amp;quot; in it, and there are none in your output, so I&amp;#39;m sort of baffled) and attach a sample form under the options tab?&lt;/p&gt;&lt;p&gt;Thanks!&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: now() function question</title><link>https://www.infopathdev.com:443/forums/thread/102678.aspx</link><pubDate>Thu, 28 May 2015 12:21:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102678</guid><dc:creator>mattderby</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102678.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=102678</wfw:commentRss><description>&lt;p&gt;Thanks Hilary but it still doesn&amp;#39;t work?&lt;/p&gt;

&lt;p&gt;This is the formula I have:&lt;/p&gt;

&lt;p&gt;concat(number(substring(now(), 9, 2)), &amp;quot;/&amp;quot;, number(substring(now(), 6, 2)), &amp;quot;/&amp;quot;, number(substring(now(), 3, 2)), &amp;quot;/&amp;quot;, number(substring(now(), 12, 5)), &amp;quot;-&amp;quot;, Username)&lt;/p&gt;

&lt;p&gt;It comes up like:&lt;/p&gt;

&lt;p&gt;28_5_15_NaN-username&lt;/p&gt;

&lt;p&gt;So I still can&amp;#39;t get the time to work?&lt;/p&gt;</description></item><item><title>Re: now() function question</title><link>https://www.infopathdev.com:443/forums/thread/102648.aspx</link><pubDate>Tue, 26 May 2015 15:02:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102648</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102648.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=102648</wfw:commentRss><description>&lt;p&gt;substring(now(), 12, 5)&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: now() function question</title><link>https://www.infopathdev.com:443/forums/thread/102621.aspx</link><pubDate>Fri, 22 May 2015 08:44:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102621</guid><dc:creator>mattderby</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102621.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=102621</wfw:commentRss><description>Sorry to drag up a very old thread - but Scott&amp;#39;s post was very helpful.  However I can&amp;#39;t seem to get it work for the time.  I though this would work:

concat(number(substring(now(), 10, 4)))

Which would show the hour and the minutes (but not seconds) but it doesn&amp;#39;t.

Anyone can help??  Thanks :)</description></item></channel></rss>