<?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>InfoPath</title><link>https://www.infopathdev.com:443/forums/170.aspx</link><description>For questions on using InfoPath in Office 365</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Preceding 0 is not showing for month calculation</title><link>https://www.infopathdev.com:443/forums/thread/120795.aspx</link><pubDate>Tue, 09 Apr 2019 21:18:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120795</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120795.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=170&amp;PostID=120795</wfw:commentRss><description>Sure, because numbers don&amp;#39;t have preceding 0s. :)  See the attached sample for one way to do this - I only included a few months in my dropdown, but there is a mix of single &amp;amp; double digits. Save the file locally, right click and select design, then preview and pick a month.</description></item><item><title>Preceding 0 is not showing for month calculation</title><link>https://www.infopathdev.com:443/forums/thread/120754.aspx</link><pubDate>Wed, 03 Apr 2019 17:31:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120754</guid><dc:creator>kwizzo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120754.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=170&amp;PostID=120754</wfw:commentRss><description>I am attempting to add months to a date that the User selects for a calibration record.  I have the breakdown of Month/Date/Year into individual text boxes.  To complete the calculation, I need to change the month from a text box to a number, and I have done that with a &amp;quot;Number&amp;quot; formula in the rules for the month text box.  When I get the result, if it is under 10 months, it drops the preceding 0 and only shows the number of the month.  When converting this back to a date format, it will not accept the single digit month.

I am wondering how I can add a preceding 0 to the month (after converted to a number) so that I can convert it back to a proper date for &amp;quot;Next Calibration Date&amp;quot;.</description></item></channel></rss>