<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Automatic date formating mm/yyyy to mm/dd/yyyy</title><link>https://www.infopathdev.com:443/forums/thread/106731.aspx</link><pubDate>Sun, 22 May 2016 23:01:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106731</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106731.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=106731</wfw:commentRss><description>&lt;p&gt;Hello, Airbornm3 and thank you for posting!&lt;/p&gt;&lt;p&gt;You can add a rule to the field with a condition to check if it is the first day of the month (substring(field, 4, 2) = &amp;quot;01&amp;quot;) and if so, just set it to a value that updates it with another function, concat(substring(field, 1, 4), &amp;quot;31&amp;quot;,substring(field, 6, 10)). &lt;/p&gt;&lt;p&gt;One problem is that some months are not 31. So&amp;nbsp;you may need to have multiple conditions based on the month, but it is not hard to add these kinds of rules and calculations.&lt;/p&gt;&lt;p&gt;Best of luck!&amp;nbsp;&lt;/p&gt;</description></item><item><title>Automatic date formating mm/yyyy to mm/dd/yyyy</title><link>https://www.infopathdev.com:443/forums/thread/106694.aspx</link><pubDate>Thu, 19 May 2016 15:13:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106694</guid><dc:creator>airbornm3</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106694.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=106694</wfw:commentRss><description>&lt;p&gt;Hi, thanks for your help in advanced.&lt;/p&gt;&lt;p&gt;For example when I enter 06/2016 into a datepicker field it automatically defaults to 06/01/2016 when the user leaves the field. Is there a way to code so that when a user enters 06/2016 manually it automatically defaults to 06/31/2016 instead of 06/01/2016? So in other words to the end of the month instead of the beginning? Thanks &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>