<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : compare DateTime object in .where()</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : compare DateTime object in .where()</description>
  <pubDate>Sat, 11 Apr 2026 22:36:34 -700</pubDate>
  <lastBuildDate>Wed, 05 Aug 2009 18:55:16 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=1401</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>compare DateTime object in .where() : i resolved , thx  </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1401&amp;PID=5118#5118</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=454" rel="nofollow">monkeyking</a><br /><strong>Subject:</strong> 1401<br /><strong>Posted:</strong> 05-Aug-2009 at 6:55pm<br /><br />i resolved , thx]]>
   </description>
   <pubDate>Wed, 05 Aug 2009 18:55:16 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1401&amp;PID=5118#5118</guid>
  </item> 
  <item>
   <title>compare DateTime object in .where() : As much as we&amp;#039;d love to answer...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1401&amp;PID=5117#5117</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=51" rel="nofollow">eileenv</a><br /><strong>Subject:</strong> 1401<br /><strong>Posted:</strong> 05-Aug-2009 at 2:26pm<br /><br /><P>As much as we'd love to answer every question on our forum, the support team at IdeaBlade must limit themselves to those that are related specifically to DevForce. If there is a specific question you have such as "How does this DevForce feature work?", we'd be more than happy to respond. However, for general programming questions, we simply cannot take the time or responsibility to answer them. There are plenty of resources on the web on how to use LINQ and extension methods. Perhaps someone from the general public can supply a ready answer.</P><DIV>We hope you understand. </DIV><P>IdeaBlade Support</P>]]>
   </description>
   <pubDate>Wed, 05 Aug 2009 14:26:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1401&amp;PID=5117#5117</guid>
  </item> 
  <item>
   <title>compare DateTime object in .where() : Thanks eileenv, it worksSecondly,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1401&amp;PID=5082#5082</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=454" rel="nofollow">monkeyking</a><br /><strong>Subject:</strong> 1401<br /><strong>Posted:</strong> 30-Jul-2009 at 5:20pm<br /><br />Thanks eileenv, it works<br><br>Secondly, I want to add a 'for' loop inside of 'where()', is that possible? <br><br>what i mean is, if i have a list of conditions and the amount of conditions is changing as well, so i need a for loop inside of 'where' to go through each condition of that list, is that possible?<br><br>for instance:<br>&nbsp;var query = AdditionalFunctions.manager.Dinvoices.Where(o=&gt; for(int i=0;i&lt;conditions.count;i++){o.Type == conditions<em>})<br><br>the reason i use a for loop is, the amount of conditions is changing, in this case I can't set each condition into 'where' without 'for' loop. i want to select all data from DB into a query and then use for loop, but because our data storage is too big, if we don't put condition to make a query, the 'var query' won't take so much data and the system will be pop up a error message as well.<br><br><br><br>]]>
   </description>
   <pubDate>Thu, 30 Jul 2009 17:20:12 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1401&amp;PID=5082#5082</guid>
  </item> 
  <item>
   <title>compare DateTime object in .where() : DateTime.Compare(t1, t2) returns...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1401&amp;PID=5080#5080</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=51" rel="nofollow">eileenv</a><br /><strong>Subject:</strong> 1401<br /><strong>Posted:</strong> 30-Jul-2009 at 3:00pm<br /><br />DateTime.Compare(t1, t2) returns a signed number indicating the relative values of t1 and t2:<br /><br />&lt;0 means t1 is earlier than t2<br />0 means t1 is same as t2<br />&gt;0 means t1 is later than t2<br /><br />Therefore, if checking for equality for example, your query should look like:<br /><br />var query = AdditionalFunctions.manager.Dinvoices.Where(o =&gt; DateTime.Compare(o.DATE, fromDateEdit.DateTime) == 0);<span style="font-size:10px"><br /><br />Edited by eileenv - 30-Jul-2009 at 3:01pm</span>]]>
   </description>
   <pubDate>Thu, 30 Jul 2009 15:00:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1401&amp;PID=5080#5080</guid>
  </item> 
  <item>
   <title>compare DateTime object in .where() : I want to compare DateTime property...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1401&amp;PID=5070#5070</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=454" rel="nofollow">monkeyking</a><br /><strong>Subject:</strong> 1401<br /><strong>Posted:</strong> 29-Jul-2009 at 11:33pm<br /><br />I want to compare DateTime property amount entities, but I don't know how to write the condition to use fill the where(). this is the line of code which can stands for what I want, but it's wrong syntax:<br><br>var query = AdditionalFunctions.manager.Dinvoices.Where(DateTime.Compare(o =&gt;o.DATE, fromDateEdit.DateTime));<br><br>because DateTime object must be compared by DateTime.Compare(dateTime1, dateTime2) method, but how can I fit DateTime.Compare(dateTime1, dateTime2) into .Where()?&nbsp;]]>
   </description>
   <pubDate>Wed, 29 Jul 2009 23:33:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1401&amp;PID=5070#5070</guid>
  </item> 
 </channel>
</rss>