<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: After calculating date field validation error in Infopath Designer</title><link>https://www.infopathdev.com:443/forums/thread/102476.aspx</link><pubDate>Mon, 11 May 2015 13:04:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102476</guid><dc:creator>adit123</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102476.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102476</wfw:commentRss><description>&lt;p&gt;Thank you! It worked perfectly!&lt;/p&gt;</description></item><item><title>Re: After calculating date field validation error in Infopath Designer</title><link>https://www.infopathdev.com:443/forums/thread/102459.aspx</link><pubDate>Thu, 07 May 2015 22:32:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102459</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102459.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102459</wfw:commentRss><description>&lt;p&gt;SharePoint lists will let you display a date time as a date only value - but in the end, the data type is date time.&lt;/p&gt;</description></item><item><title>Re: After calculating date field validation error in Infopath Designer</title><link>https://www.infopathdev.com:443/forums/thread/102458.aspx</link><pubDate>Thu, 07 May 2015 22:22:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102458</guid><dc:creator>adit123</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102458.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102458</wfw:commentRss><description>Oh is that the default setting through SP? Okay I will try this . Thank you!</description></item><item><title>Re: After calculating date field validation error in Infopath Designer</title><link>https://www.infopathdev.com:443/forums/thread/102457.aspx</link><pubDate>Thu, 07 May 2015 22:18:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102457</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102457.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102457</wfw:commentRss><description>&lt;p&gt;So, when you say &amp;quot;my form is created through SharePoint&amp;quot; do you mean this is a list form?&lt;/p&gt;
&lt;p&gt;If so, I&amp;#39;d assume that any date field is actually a date time.&lt;/p&gt;
&lt;p&gt;Try adding &amp;quot;T00:00:00&amp;quot; to the end of your concat formula and see what happens.&lt;/p&gt;</description></item><item><title>Re: After calculating date field validation error in Infopath Designer</title><link>https://www.infopathdev.com:443/forums/thread/102456.aspx</link><pubDate>Thu, 07 May 2015 22:15:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102456</guid><dc:creator>adit123</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102456.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102456</wfw:commentRss><description>Hello Hilary, so I was replicating the form in a blank infopath filler, and when i was applying the same rules, it worked! I can not send you my acutal form due to privacy issues , but my form is created through Sharepoint maybe that is why I am receiving such a validation error? In the blank Infopath Filler form, it was completely fine! No validation error. This is strange. Any reason why you think&amp;nbsp;this is happening?</description></item><item><title>Re: After calculating date field validation error in Infopath Designer</title><link>https://www.infopathdev.com:443/forums/thread/102455.aspx</link><pubDate>Thu, 07 May 2015 21:58:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102455</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102455.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102455</wfw:commentRss><description>&lt;p&gt;Can you attach your template under the options tab in a reply?&lt;/p&gt;</description></item><item><title>Re: After calculating date field validation error in Infopath Designer</title><link>https://www.infopathdev.com:443/forums/thread/102454.aspx</link><pubDate>Thu, 07 May 2015 21:52:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102454</guid><dc:creator>adit123</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102454.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102454</wfw:commentRss><description>Correct. So I have two fields. One is a text box where I set a rule and does the replacing of the day, so using your function. and then the other is a &amp;quot;Date Only&amp;quot; field where in the default value I just make it equal to the text box field. I am not sure where I am going wrong with this. I also tried the your formula directly on the Date Only field and received the same validation error.</description></item><item><title>Re: After calculating date field validation error in Infopath Designer</title><link>https://www.infopathdev.com:443/forums/thread/102453.aspx</link><pubDate>Thu, 07 May 2015 21:48:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102453</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102453.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102453</wfw:commentRss><description>&lt;p&gt;What is the data type of the field you are trying to set with this rule? Date or Date Time?&lt;/p&gt;</description></item><item><title>Re: After calculating date field validation error in Infopath Designer</title><link>https://www.infopathdev.com:443/forums/thread/102452.aspx</link><pubDate>Thu, 07 May 2015 21:40:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102452</guid><dc:creator>adit123</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102452.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102452</wfw:commentRss><description>&lt;p&gt;I placed in your function, but I am still receiving the validation error :( . Now it is just showing up as &amp;quot;2016-05-28&amp;quot; . Is this because the Date type box sees this as a string rather than an actual date?&lt;/p&gt;</description></item><item><title>Re: After calculating date field validation error in Infopath Designer</title><link>https://www.infopathdev.com:443/forums/thread/102451.aspx</link><pubDate>Thu, 07 May 2015 21:33:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102451</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102451.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102451</wfw:commentRss><description>&lt;p&gt;And what I am saying is that you get a validation error because your formula is not returning a correctly formatted date.&lt;/p&gt;
&lt;p&gt;concat(substring(Calculated Cal. Due Date, 1,4), &amp;quot;-&amp;quot;, substring(Calculated Cal. Due Date,6,2), &amp;quot;-28&amp;quot;)&lt;/p&gt;</description></item><item><title>Re: After calculating date field validation error in Infopath Designer</title><link>https://www.infopathdev.com:443/forums/thread/102450.aspx</link><pubDate>Thu, 07 May 2015 21:27:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102450</guid><dc:creator>adit123</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102450.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102450</wfw:commentRss><description>&lt;p&gt;Sorry, I should clarify more. I basically want to replace the day, from a calculated text box field which is in yyyy-MM-ddThh:mm:ss , and now I want to replace it with the day 28. I realized February would not have 30 days.&amp;nbsp; So once&amp;nbsp; I replace the day using this function:&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;p&gt;concat(number(substring(Calculated Cal. Due Date,6,2))), &amp;quot;/28/&amp;quot;, number(substring(Calculated Cal. Due Date, 1,4)))&amp;nbsp;&lt;/p&gt;&lt;/span&gt;&lt;p&gt;&lt;font size="3"&gt;&lt;/font&gt;&amp;nbsp;, I set the default value of a Date type field equal to the text box where I replaced the day with the 28. &lt;/p&gt;</description></item><item><title>Re: After calculating date field validation error in Infopath Designer</title><link>https://www.infopathdev.com:443/forums/thread/102449.aspx</link><pubDate>Thu, 07 May 2015 21:05:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102449</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102449.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102449</wfw:commentRss><description>&lt;p&gt;Regardless of how a date is displayed on the form (the formatting settings) the format for a date datatype in XML is:&lt;/p&gt;
&lt;p&gt;yyyy-MM-dd&lt;/p&gt;
&lt;p&gt;So, you want both of the characters for month instead of just one, and you want year, then month, then &amp;quot;30&amp;quot;, all hyphen separated.&lt;/p&gt;
&lt;p&gt;Look at an XML file in a text editor and you&amp;#39;ll see how the dates are formatted.&lt;/p&gt;
&lt;p&gt;DateTime format (for completeness):&lt;/p&gt;
&lt;p&gt;yyyy-MM-ddThh:mm:ss&lt;/p&gt;</description></item><item><title>After calculating date field validation error in Infopath Designer</title><link>https://www.infopathdev.com:443/forums/thread/102448.aspx</link><pubDate>Thu, 07 May 2015 20:03:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102448</guid><dc:creator>adit123</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102448.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102448</wfw:commentRss><description>&lt;p&gt;I am trying to do a calculation where the date always gets calculated to the 30th of a month so, I am using this formula in a text box, &lt;/p&gt;&lt;p&gt;concat(substring(Calculated Cal. Due Date, 7, 1), &amp;quot;/30/&amp;quot;, substring(Calculated Cal. Due Date, 1, 4))&lt;/p&gt;&lt;p&gt;Then I created a Date picker box and in it&amp;#39;s default value, I made it equal to the text box, however I am receiving a validation error where it is showing red dashes around the Date Picker box. Also when a calculation is made, it is in the correct format , &amp;quot;mm/dd/yyyy&amp;quot;. Even with the consistent formatting, there is a red dash , showing a validation error. I am not sure what i am doing wrong. &lt;/p&gt;</description></item></channel></rss>