<?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: Date/Time Format</title><link>https://www.infopathdev.com:443/forums/thread/120151.aspx</link><pubDate>Fri, 07 Dec 2018 16:08:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120151</guid><dc:creator>runngun17</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120151.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=120151</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thank you Hilary.&amp;nbsp; I ended up using a Drop Down for Hour and a drop down for minute pulling from a support list.&amp;nbsp; Then concat it to a field.&amp;nbsp; &lt;/p&gt;</description></item><item><title>Re: Date/Time Format</title><link>https://www.infopathdev.com:443/forums/thread/120147.aspx</link><pubDate>Fri, 07 Dec 2018 15:46:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120147</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120147.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=120147</wfw:commentRss><description>In your first formula I see some &amp;quot;smart quotes&amp;quot; that could be causing your issue - try removing those and typing them into your formula editor again. Also - I would probably not use a formula to format a date time - you can just add a calculated value to display it, and then set the calculated value control to date/time and set the format. If you are using a browser form, use one control for date and another for time.</description></item><item><title>Date/Time Format</title><link>https://www.infopathdev.com:443/forums/thread/120144.aspx</link><pubDate>Thu, 06 Dec 2018 04:59:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120144</guid><dc:creator>runngun17</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120144.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=120144</wfw:commentRss><description>&lt;p&gt;I would like to format my Date/Time field into this format: mm/dd/yyyy&amp;nbsp;HH:MM (AM/PM).&amp;nbsp; I found this solution, but getting an error for some of the quotations:&lt;/p&gt;&lt;p&gt;concat(substring(MyDateTime, 6, 2), “/”, substring(MyDateTime, 9, 2), “/”, substring(MyDateTime, 1, 4), ” “, substring(MyDateTime, 12, 2) mod 12 + 12 * (substring(MyDateTime, 12, 2) mod 12 = 0), substring(MyDateTime, 14, 3), ” “, substring(“AP”, 1 + (substring(MyDateTime, 12, 2) &amp;gt;= 12), 1), “M”)&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;To add to this, I changed my process to military time:&lt;/p&gt;&lt;p&gt;concat(substring(TransferOutDatePatientLeftFacility, 6, 2), &amp;quot;/&amp;quot;, substring(TransferOutDatePatientLeftFacility, 9, 2), &amp;quot;/&amp;quot;, substring(TransferOutDatePatientLeftFacility, 1, 4), &amp;quot; - &amp;quot;, number(substring(TransferOutDatePatientLeftFacility, 12, 2)),&amp;quot;:&amp;quot;,number(substring(TransferOutDatePatientLeftFacility, 15, 2)))&amp;nbsp;&lt;/p&gt;&lt;p&gt;For this, I would like to add a colon between the hour and mins field.&amp;nbsp; When I added it, it showed an error for the&amp;nbsp;quotation mark before the colon.&amp;nbsp;If I took the colon out, it worked.&amp;nbsp; However, it doesn&amp;#39;t pull both of the mins fields.&amp;nbsp; It should pull two numbers.&amp;nbsp; But if the time is 13:00, it shows 130.&amp;nbsp; If the time was 1302, it shows 132.&amp;nbsp; Any thoughts.&lt;/p&gt;</description></item></channel></rss>