<?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: Default Date to First Day of Next Month</title><link>https://www.infopathdev.com:443/forums/thread/122703.aspx</link><pubDate>Mon, 06 Apr 2020 15:53:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:122703</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/122703.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=122703</wfw:commentRss><description>Thanks so much for taking the time to share your solution! :)</description></item><item><title>Re: Default Date to First Day of Next Month</title><link>https://www.infopathdev.com:443/forums/thread/122701.aspx</link><pubDate>Mon, 06 Apr 2020 13:56:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:122701</guid><dc:creator>NickiPT</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/122701.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=122701</wfw:commentRss><description>I know this is many years after the fact but I figured out a solution to this and figured I would post it in case someone else came across this thread... 

Adding T00:00:00 to the end of the string doesn&amp;#39;t solve it because what&amp;#39;s happening is that when the formula adds one &amp;quot;+ 1&amp;quot; to the month string, it turns it into a single digit if your month is one of the first 9 months of the year. You need to create a field that will force a value with 2 digits and then incorporate that into your formula. So I ended up with three separate fields - possibly overkill but it works so here how it is set up:&lt;br /&gt;
&lt;br /&gt;
1. Month_After_Received&lt;br /&gt;
    Text field; its value is set by Date_Received.&lt;br /&gt;&lt;br /&gt;

2. Month_After_Recd_TwoDigits&lt;br /&gt;
    Text field, its default value is:&lt;br /&gt;
    concat(substring(&amp;#39;00&amp;#39;, 1, 2 - string-length(Month_After_Received)), Month_After_Received)&lt;br /&gt;&lt;br /&gt;

3. Date_Received:&lt;br /&gt;&lt;br /&gt; 

// extract the month from this field and add 1 to it&lt;br /&gt;
    a. Condition: When field changes &lt;br /&gt;
        Action: Month_After_Received to: number(substring(., 6, 2)) + 1&lt;br /&gt;&lt;br /&gt;

// this is for all months other than December&lt;br /&gt;
    b. Condition: substring(., 6, 2) != 12     &lt;br /&gt;              
        Action: Date_Due = concat(substring(., 1, 4), &amp;quot;-&amp;quot;, Month_After_Recd_TwoDigits, &amp;quot;-01T00:00:00&amp;quot;)&lt;br /&gt;&lt;br /&gt;

// this is for December&lt;br /&gt;
    c. Condition: substring(., 6, 2) = 12        &lt;br /&gt;           
        Action: Date_Due = concat(substring(., 1, 4) + 1, &amp;quot;-01-01T00:00:00&amp;quot;)</description></item><item><title>Re: Default Date to First Day of Next Month</title><link>https://www.infopathdev.com:443/forums/thread/94171.aspx</link><pubDate>Thu, 07 Nov 2013 16:50:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94171</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94171.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94171</wfw:commentRss><description>&lt;p&gt;Ah, now I know what&amp;#39;s up. We need to add &amp;quot; 00:00:00&amp;quot; to the date. That&amp;#39;s a space and 0s for time for hours, minutes, etc. This is because SharePoint doesn&amp;#39;t have a date data type, but has a date time data type. Can you try that? With a concat? And see if that helps?&lt;/p&gt;</description></item><item><title>Re: Default Date to First Day of Next Month</title><link>https://www.infopathdev.com:443/forums/thread/94170.aspx</link><pubDate>Thu, 07 Nov 2013 16:40:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94170</guid><dc:creator>mecamden</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94170.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94170</wfw:commentRss><description>Here is my problem. I&amp;#39;m using another date field to populate the Order Date field. The functionality is great and working fine, it&amp;#39;s the formatting however that I can&amp;#39;t figure out. I need the date to display as month/day/year format rather than year-month-day format. The form that you sent me is in the right format, but because I am using a SharePoint list and not a Form Library the date that is being pushed out is in the wrong format. Without the right format the user would have to retype in the correct format or use the calendar icon to pick a different date.</description></item><item><title>Re: Default Date to First Day of Next Month</title><link>https://www.infopathdev.com:443/forums/thread/94152.aspx</link><pubDate>Wed, 06 Nov 2013 23:28:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94152</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94152.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94152</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Can you attach a screenshot under the options tab showing the issue?&lt;/p&gt;</description></item><item><title>Re: Default Date to First Day of Next Month</title><link>https://www.infopathdev.com:443/forums/thread/94150.aspx</link><pubDate>Wed, 06 Nov 2013 22:05:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94150</guid><dc:creator>mecamden</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94150.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94150</wfw:commentRss><description>I used the created field to populate the &amp;quot;First Day of the Month&amp;quot; field. And the order Date field is defaulted to the &amp;quot;first day of the month&amp;quot; field. I needed to make sure that the Date field can be changed later on.</description></item><item><title>Re: Default Date to First Day of Next Month</title><link>https://www.infopathdev.com:443/forums/thread/94148.aspx</link><pubDate>Wed, 06 Nov 2013 20:46:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94148</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94148.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94148</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Where is your rule? I expected to see it on the Order Date - is it someplace else?&lt;/p&gt;</description></item><item><title>Re: Default Date to First Day of Next Month</title><link>https://www.infopathdev.com:443/forums/thread/94146.aspx</link><pubDate>Wed, 06 Nov 2013 20:41:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94146</guid><dc:creator>mecamden</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94146.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94146</wfw:commentRss><description>This is the form we were talking about in our messages :)</description></item><item><title>Re: Default Date to First Day of Next Month</title><link>https://www.infopathdev.com:443/forums/thread/94094.aspx</link><pubDate>Tue, 05 Nov 2013 13:57:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94094</guid><dc:creator>mecamden</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94094.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94094</wfw:commentRss><description>Thank you so much!</description></item><item><title>Re: Default Date to First Day of Next Month</title><link>https://www.infopathdev.com:443/forums/thread/94082.aspx</link><pubDate>Mon, 04 Nov 2013 20:07:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94082</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94082.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94082</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;This would get a little tricky with default values, but can be done rather simply using rules. I&amp;#39;ve attached a sample - save it locally, right click and select design to open in design mode. The only problem you may have is that the rules could execute again and overwrite the user&amp;#39;s entry, so you may need to add some other logic to handle for that.&lt;/p&gt;</description></item><item><title>Default Date to First Day of Next Month</title><link>https://www.infopathdev.com:443/forums/thread/94081.aspx</link><pubDate>Mon, 04 Nov 2013 17:18:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94081</guid><dc:creator>mecamden</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94081.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94081</wfw:commentRss><description>I&amp;#39;m trying to write a formula that will set the default date on a date picker control to the first day of the next month. For example, if I were filling out the form today (November 4th), the default value of the date picker would be the 1st of December. Or if I was filling out the form on the 20th of July, the default would be the 1st of August. Any answers or direction are greatly appreciated.</description></item></channel></rss>