<?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: Convert time to text?  Date too?</title><link>https://www.infopathdev.com:443/forums/thread/73526.aspx</link><pubDate>Thu, 05 Jan 2012 16:40:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73526</guid><dc:creator>shniggens</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73526.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=73526</wfw:commentRss><description>&lt;p&gt;Would that work on a drop-down list box?&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;If I&amp;nbsp;am concatting the date and time into another field in a repeating table (which is where I applied your formula), and then lookup the concatted field in a drop-down list box, where should I apply the FormatDate?&lt;/p&gt;</description></item><item><title>Re: Convert time to text?  Date too?</title><link>https://www.infopathdev.com:443/forums/thread/73525.aspx</link><pubDate>Thu, 05 Jan 2012 16:15:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73525</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73525.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=73525</wfw:commentRss><description>&lt;p&gt;Well, the qRules FormatDate command should be able to accomplish that for you, without all this fancy XPath.&lt;/p&gt;</description></item><item><title>Re: Convert time to text?  Date too?</title><link>https://www.infopathdev.com:443/forums/thread/73523.aspx</link><pubDate>Thu, 05 Jan 2012 15:50:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73523</guid><dc:creator>shniggens</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73523.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=73523</wfw:commentRss><description>&lt;p&gt;Great, got it, thanks!&lt;/p&gt;
&lt;p&gt;Now, to convert the date text from 05/01/2012 to Wednesday, May 01, 2012.&amp;nbsp; ; )&lt;/p&gt;</description></item><item><title>Re: Convert time to text?  Date too?</title><link>https://www.infopathdev.com:443/forums/thread/73522.aspx</link><pubDate>Thu, 05 Jan 2012 15:46:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73522</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73522.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=73522</wfw:commentRss><description>&lt;p&gt;This should work for that:&lt;/p&gt;
&lt;p&gt;concat(substring(field1, 6, 2), &amp;quot;/&amp;quot;, substring(field1, 9, 2), &amp;quot;/&amp;quot;, substring(field1, 1, 4), &amp;quot; &amp;quot;, substring(&amp;quot;0&amp;quot;, 1, substring(field2, 1, 2) mod 12 + 12 * (substring(field2, 1, 2) mod 12 = 0) &amp;lt; 10), substring(field2, 1, 2) mod 12 + 12 * (substring(field2, 1, 2) mod 12 = 0), substring(field2, 3, &lt;strong&gt;&lt;u&gt;3&lt;/u&gt;&lt;/strong&gt;), &amp;quot; &amp;quot;, substring(&amp;quot;AP&amp;quot;, 1 + (substring(field2, 1, 2) &amp;gt;= 12), 1), &amp;quot;M&amp;quot;)&lt;/p&gt;
&lt;p&gt;Note the underlined 3 there.&amp;nbsp; That&amp;#39;s the only part that changed.&lt;/p&gt;</description></item><item><title>Re: Convert time to text?  Date too?</title><link>https://www.infopathdev.com:443/forums/thread/73520.aspx</link><pubDate>Thu, 05 Jan 2012 15:35:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73520</guid><dc:creator>shniggens</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73520.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=73520</wfw:commentRss><description>&lt;p&gt;This formula from Jimmy worked -&lt;/p&gt;
&lt;p&gt;concat(substring(field1, 6, 2), &amp;quot;/&amp;quot;, substring(field1, 9, 2), &amp;quot;/&amp;quot;, substring(field1, 1, 4), &amp;quot; &amp;quot;, substring(&amp;quot;0&amp;quot;, 1, substring(field2, 1, 2) mod 12 + 12 * (substring(field2, 1, 2) mod 12 = 0) &amp;lt; 10), substring(field2, 1, 2) mod 12 + 12 * (substring(field2, 1, 2) mod 12 = 0), substring(field2, 3, 6), &amp;quot; &amp;quot;, substring(&amp;quot;AP&amp;quot;, 1 + (substring(field2, 1, 2) &amp;gt;= 12), 1), &amp;quot;M&amp;quot;)&lt;/p&gt;
&lt;p&gt;Where field one is my date field and field two is my time field.&amp;nbsp; Now I just need to remove the seconds from the time.&amp;nbsp; &lt;/p&gt;</description></item><item><title>Re: Convert time to text?  Date too?</title><link>https://www.infopathdev.com:443/forums/thread/73503.aspx</link><pubDate>Thu, 05 Jan 2012 02:29:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73503</guid><dc:creator>Jo-Anne Alfafara</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73503.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=73503</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is this &lt;a href="http://www.infopathdev.com/forums/t/21222.aspx"&gt;post&lt;/a&gt; similar to what your doing? Jimmy posted some good suggestions.&lt;/p&gt;</description></item><item><title>Convert time to text?  Date too?</title><link>https://www.infopathdev.com:443/forums/thread/73495.aspx</link><pubDate>Wed, 04 Jan 2012 22:25:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73495</guid><dc:creator>shniggens</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73495.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=73495</wfw:commentRss><description>&lt;p&gt;I need to get the text value of a formatted time and date, so that I can concat them in a field to later be available in a drop-down list.&amp;nbsp; I have 2 seperate fields, one for date, one for time.&amp;nbsp; I was able to successfully convert the date into another field into a mm/dd/yyyy format.&amp;nbsp; That&amp;#39;s good enough.&amp;nbsp; But I&amp;#39;m only able to get a 24 hour format out of the time.&lt;/p&gt;
&lt;p&gt;Suggestions?&lt;/p&gt;</description></item></channel></rss>