<?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: Compare Days and Months Not Year</title><link>https://www.infopathdev.com:443/forums/thread/106206.aspx</link><pubDate>Mon, 18 Apr 2016 12:21:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106206</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106206.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=106206</wfw:commentRss><description>&lt;p&gt;The date fields use a string format like this: 2016-04-18&lt;/p&gt;&lt;p&gt;You can strip off the year using the substring function. Try substring(field,5,5).&amp;nbsp; Then you can compare that to 02-16 and/or 03-15.&lt;/p&gt;&lt;p&gt;To do a numeric comparison, you can remove the hyphen&amp;nbsp;(-) character &amp;nbsp;using the translate(field,&amp;quot;-&amp;quot;, &amp;quot;&amp;quot;) command and number function. You&amp;#39;ll need another field in your form to take the result.&lt;/p&gt;&lt;p&gt;We can help with this and it won&amp;#39;t take much support time.&lt;/p&gt;&lt;p&gt;Good luck!&amp;nbsp;&lt;/p&gt;</description></item><item><title>Compare Days and Months Not Year</title><link>https://www.infopathdev.com:443/forums/thread/106197.aspx</link><pubDate>Sun, 17 Apr 2016 06:00:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106197</guid><dc:creator>emgre</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106197.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=106197</wfw:commentRss><description>Hi,

I am working on a form where I need to automatically set a calendar period (like below) based on today&amp;#39;s date.  &lt;b&gt;&lt;br /&gt;If today() greater than 16/02 and today() Less than 15/03, Set Period to 16th February to 15th March&lt;/b&gt;</description></item></channel></rss>