<?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: Format Time from the now()</title><link>https://www.infopathdev.com:443/forums/thread/95690.aspx</link><pubDate>Wed, 05 Feb 2014 16:49:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95690</guid><dc:creator>jaxkookie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95690.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=95690</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;thanks brother, you rock! works perfectly. I wont pretend to understand it, lol&lt;/p&gt;</description></item><item><title>Re: Format Time from the now()</title><link>https://www.infopathdev.com:443/forums/thread/95687.aspx</link><pubDate>Wed, 05 Feb 2014 15:45:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95687</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95687.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=95687</wfw:commentRss><description>&lt;p&gt;Please try this for the red part. My original version may have been a little too funky:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;span&gt;&lt;font size="3"&gt;substring(now(), 12,
2)&amp;nbsp;mod 12 + 12 * ((substring(now(), 12, 2) mod 12) = 0)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Format Time from the now()</title><link>https://www.infopathdev.com:443/forums/thread/95682.aspx</link><pubDate>Wed, 05 Feb 2014 13:40:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95682</guid><dc:creator>jaxkookie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95682.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=95682</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Jimmy, &lt;/p&gt;
&lt;p&gt;you rock, once again! &lt;/p&gt;

&lt;p&gt;So this work in the client, but not in the browser. When I publish I get an unsupported expression, when I open from the library it opens in the client now. If I didn&amp;#39;t say this in ver 2007. &lt;/p&gt;

&lt;p&gt;this is my complete formula&lt;/p&gt;
concat(substring(xdDate:Now(), 6, 2), &amp;quot;/&amp;quot;, substring(xdDate:Now(), 9, 2), &amp;quot;/&amp;quot;, substring(xdDate:Now(), 1, 4), &amp;quot;  &amp;quot;, &lt;span style="color:red;"&gt;substring(xdDate:Now(), 12, 2) mod 12 + 12 * not(substring(xdDate:Now(), 12, 2) mod 12)&lt;/span&gt;, &amp;quot;:&amp;quot;, substring(xdDate:Now(), 15, 2), &amp;quot; &amp;quot;, &lt;span style="color:blue;"&gt;substring(&amp;quot;AMPM&amp;quot;, 1 + 2 * (substring(xdDate:Now(), 12, 2) &amp;gt;= 12), 2)&lt;/span&gt;)


&lt;p&gt;the parts you provided are in red and blue. when I remove the red, it works.&lt;/p&gt;&lt;p&gt;do you have any other magic tricks?&lt;/p&gt;</description></item><item><title>Re: Format Time from the now()</title><link>https://www.infopathdev.com:443/forums/thread/95678.aspx</link><pubDate>Wed, 05 Feb 2014 04:38:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95678</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95678.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=95678</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Here&amp;#39;s how you can adjust the hour number:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;substring(now(), 12, 2)&amp;nbsp;mod 12 + 12 * not(substring(now(), 12, 2) mod 12)&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;And here&amp;#39;s how you can get the AM/PM part:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;substring(&amp;quot;AMPM&amp;quot;, 1 + 2 * (substring(now(), 12, 2)&amp;nbsp;&amp;gt;= 12), 2)&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Note that if you have qRules, you can use the FormatDate command to do this much more easily:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;concat(&amp;quot;FormatDate /format=G /value=&amp;quot;, now())&amp;nbsp;&amp;nbsp; &amp;lt;-- this is locale dependent, but will produce the &lt;strong&gt;M/d/yyyy hh:mm:ss tt&lt;/strong&gt; format in the US locale.&lt;/p&gt;&lt;p&gt;concat(&amp;quot;FormatDate /format=MM/dd/yyyy hh:mm:ss tt&amp;nbsp;/value=&amp;quot;, now())&amp;nbsp;&amp;nbsp; &amp;lt;-- not locale dependent&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Format Time from the now()</title><link>https://www.infopathdev.com:443/forums/thread/95671.aspx</link><pubDate>Tue, 04 Feb 2014 22:00:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95671</guid><dc:creator>jaxkookie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95671.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=95671</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I have a CommentsHistory field, Every time comments are entered into the Comment field, I concat, timestamp, comments ,commentshistory , timestamp in the now() like this&lt;/p&gt;&lt;p&gt;concat(substring(now(), 6, 2), &amp;quot;/&amp;quot;, substring(now(), 9, 2), &amp;quot;/&amp;quot;, substring(now(), 1, 4), &amp;quot;&amp;nbsp; &amp;quot;, substring(now(), 12, 2), &amp;quot;:&amp;quot;, substring(now(), 15, 2), &amp;quot;:&amp;quot;, substring(now(), 18, 2))&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;what I want to do is check this&amp;nbsp; substring(now(), 12, 2) (the Hour) and if value is greater than 12, I want to subtract 12 and set PM&lt;/p&gt;&lt;p&gt;On change of my comments field I have this condition&lt;/p&gt;&lt;p&gt;The expression : round(substring(now(), 12, 2)) &amp;gt; 12&amp;nbsp; but it is giving an error. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Am I missing something?&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>