<?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: A rule for date in xml</title><link>https://www.infopathdev.com:443/forums/thread/65594.aspx</link><pubDate>Wed, 30 Mar 2011 14:41:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65594</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65594.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=65594</wfw:commentRss><description>&lt;p&gt;Hi Mel,&lt;/p&gt;
&lt;p&gt;As you know, AddDays xpath function wasn&amp;#39;t added until 2007... &lt;/p&gt;
&lt;p&gt;You could use substring to extract the day from a date and add to it. If it exceeds the number of days in the month you&amp;#39;d have to also extract the month and increment it. Lots of rules but no code required. You can set the value to another field with a date picker and it should work just fine.&lt;/p&gt;
&lt;p&gt;Best!&lt;/p&gt;</description></item><item><title>Re: A rule for date in xml</title><link>https://www.infopathdev.com:443/forums/thread/65576.aspx</link><pubDate>Tue, 29 Mar 2011 21:55:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65576</guid><dc:creator>Marcel 2586</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65576.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=65576</wfw:commentRss><description>Aaaah, now i get it, clever solution, make it a big number and look if it is bigger, smaller or equal to. So again Hilary and Jimmy a big thanks!</description></item><item><title>Re: A rule for date in xml</title><link>https://www.infopathdev.com:443/forums/thread/65562.aspx</link><pubDate>Tue, 29 Mar 2011 16:29:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65562</guid><dc:creator>pamam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65562.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=65562</wfw:commentRss><description>&lt;p&gt;Hilary, &lt;/p&gt;
&lt;p&gt;Can I add a few days to a date in a date picker control using rules in InfoPath 2003 SP1 rather having to write code.&amp;nbsp; And can I have the result sent to another date picker control.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Mel&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: A rule for date in xml</title><link>https://www.infopathdev.com:443/forums/thread/65553.aspx</link><pubDate>Tue, 29 Mar 2011 14:38:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65553</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65553.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=65553</wfw:commentRss><description>&lt;p&gt;The translate function is removing the &amp;quot;-&amp;quot; from your dates, so that the dates are numbers like 20110301 or 20110809. Now the operator &amp;quot;&amp;gt;&amp;quot; knows what to do, since you are comparing two numbers....&lt;/p&gt;</description></item><item><title>Re: A rule for date in xml</title><link>https://www.infopathdev.com:443/forums/thread/65549.aspx</link><pubDate>Tue, 29 Mar 2011 08:53:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65549</guid><dc:creator>Marcel 2586</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65549.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=65549</wfw:commentRss><description>&lt;p&gt;I think i got it working with translate, as suggested by Jimmy and a push from Hilary.&lt;/p&gt;
&lt;p&gt;in text box properties date1 i went to tab display, button conditional formatting.&lt;br /&gt;The first puldown menu i have te date1&amp;nbsp;field (from my database) then the second puldown i have is less than or equel to and the last puldown i have chosen Use a Formula.&lt;br /&gt;From there i have translate (Date1, &amp;quot;-&amp;quot;, &amp;quot;&amp;quot;) &amp;gt; translate(today, &amp;quot;-&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;Then i have a Bold and color blue selected. And it seems to be working.&lt;/p&gt;
&lt;p&gt;But wat it means and do, i have no qlue&amp;nbsp;&amp;quot;-&amp;quot;,&amp;quot;&amp;quot; &lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;</description></item><item><title>Re: A rule for date in xml</title><link>https://www.infopathdev.com:443/forums/thread/65535.aspx</link><pubDate>Tue, 29 Mar 2011 00:00:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65535</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65535.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=65535</wfw:commentRss><description>&lt;p&gt;I think Jimmy is suggesting you use this in place of your current rule (which from your post sounds like conditional formatting on the date field).&lt;/p&gt;</description></item><item><title>Re: A rule for date in xml</title><link>https://www.infopathdev.com:443/forums/thread/65512.aspx</link><pubDate>Mon, 28 Mar 2011 18:18:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65512</guid><dc:creator>Marcel 2586</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65512.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=65512</wfw:commentRss><description>Sorry Jimmy, i am a little confused.

Do i use this in date textbox? and do i have to filter data?
Thanks in advance.

Marcel.</description></item><item><title>Re: A rule for date in xml</title><link>https://www.infopathdev.com:443/forums/thread/65482.aspx</link><pubDate>Mon, 28 Mar 2011 12:53:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65482</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65482.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=65482</wfw:commentRss><description>&lt;p&gt;In your validation, try using &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;translate(&lt;strong&gt;date1&lt;/strong&gt;, &amp;#39;-&amp;#39;, &amp;#39;&amp;#39;) &amp;gt; translate(&lt;strong&gt;date2&lt;/strong&gt;, &amp;#39;-&amp;#39;, &amp;#39;&amp;#39;)&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;That will probably work better.&lt;/p&gt;</description></item><item><title>A rule for date in xml</title><link>https://www.infopathdev.com:443/forums/thread/65472.aspx</link><pubDate>Sun, 27 Mar 2011 10:53:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65472</guid><dc:creator>Marcel 2586</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65472.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=65472</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;have a xml database and there is a given date, lets say 04-27-2011. I have a E-learning form that tells when this has to be followed, a Due date.&lt;br /&gt;Somewhere in my form i have a textbox with the current date and a textbox with the due date. In the textbox due date i have a rule that looks at the current date.&lt;br /&gt;If&amp;nbsp;the due date is bigger than the current date than the due date has to turn red and when it is still to come it have to be blue.&lt;br /&gt;The data value i use for textbox current date is:today() Due date textbox is filled with the due date from XML and in tab display i use the conditional format:&lt;br /&gt;due date is less than current date (&lt;font color="#ff3300"&gt;&lt;strong&gt;red&lt;/strong&gt;&lt;/font&gt;). and due date is greater than or equal to current date (&lt;font color="#0000ff"&gt;&lt;strong&gt;blue&lt;/strong&gt;&lt;/font&gt;).&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;This seems not to be working. any ideas?&lt;br /&gt;XML:&lt;br /&gt;&amp;lt;Duedate&amp;gt;04-27-2011&amp;lt;/Duedate&amp;gt;&lt;/p&gt;
&lt;p&gt;Greetings, Marcel Michorius.&lt;/p&gt;</description></item></channel></rss>