<?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>Count Records where Today() falls within Start and End Dates</title><link>https://www.infopathdev.com:443/forums/thread/107845.aspx</link><pubDate>Thu, 01 Sep 2016 18:38:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:107845</guid><dc:creator>jpl18lal22</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/107845.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=107845</wfw:commentRss><description>&lt;p&gt;I am trying to count the number of records that have a Start and End Date that fall within today. I realized an issue where if the Start Date is the same as the today value, it won&amp;#39;t count the record. The Start and End Date are coming from a data connection to a SharePoint list, so I believe it has something to do with the formatting of the dates.&lt;/p&gt;&lt;p&gt;count(ID[StartDate &amp;lt;= today() and EndDate &amp;gt;= today()])&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Example Data. (Count should be 3, but when I do it, I get 1 because it isn&amp;#39;t counting Records 1 and 3)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Today&amp;#39;s Date: 2016-09-01&lt;br /&gt;&lt;/p&gt;&lt;p&gt;ID &amp;nbsp; &amp;nbsp; &amp;nbsp; StartDate &amp;nbsp; &amp;nbsp;&amp;nbsp; EndDate&lt;/p&gt;&lt;p&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 9/1/2016&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; 9/4/2016&lt;/p&gt;&lt;p&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 8/29/2016&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; 9/7/2016&lt;/p&gt;&lt;p&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 9/1/2016 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9/1/2016 &lt;/p&gt;&lt;p&gt;I even tried to simplify it so that I was just trying to get the count of Start Date that equal Today&amp;#39;s date, but this returns 0.&lt;br /&gt;&lt;/p&gt;count(ID[StartDate = today()]) &lt;p&gt;Is there a way to format the dates the same, so my numbers are accurate?&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>