<?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 : Query Search on Date Field</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Query Search on Date Field</description>
  <pubDate>Sat, 11 Apr 2026 20:05:09 -700</pubDate>
  <lastBuildDate>Wed, 22 Jul 2009 13:33:59 -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=1384</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>Query Search on Date Field : You should be able to construct...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1384&amp;PID=5003#5003</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 1384<br /><strong>Posted:</strong> 22-Jul-2009 at 1:33pm<br /><br />You should be able to construct a query string containing the date - it's just that Entity SQL has a very non-intuitive syntax for date fields.&nbsp; Here's some info from the MSDN - <a href="http://msdn.microsoft.com/en-us/library/bb399176.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/bb399176.aspx</A>, and here's a link to a similar question here - <a href="http://www.ideablade.com/forum/forum_posts.asp?TID=806" target="_blank">http://www.ideablade.com/forum/forum_posts.asp?TID=806</A><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 22 Jul 2009 13:33:59 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1384&amp;PID=5003#5003</guid>
  </item> 
  <item>
   <title>Query Search on Date Field : Appears in order to get this to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1384&amp;PID=5000#5000</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=429" rel="nofollow">mbevins1</a><br /><strong>Subject:</strong> 1384<br /><strong>Posted:</strong> 22-Jul-2009 at 11:42am<br /><br />Appears in order to get this to work, you have to use QueryParameters rather than just building out your where clause.]]>
   </description>
   <pubDate>Wed, 22 Jul 2009 11:42:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1384&amp;PID=5000#5000</guid>
  </item> 
  <item>
   <title>Query Search on Date Field : I am having a hard time trying...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1384&amp;PID=4999#4999</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=429" rel="nofollow">mbevins1</a><br /><strong>Subject:</strong> 1384<br /><strong>Posted:</strong> 22-Jul-2009 at 7:37am<br /><br />I am having a hard time trying to figure out how to search on a date only field.&nbsp; How do I create my where clause?&nbsp; <FONT size=2><P>Where schdate&nbsp;=</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2><FONT color=#ff0000 size=2><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Convert</FONT></FONT><FONT size=2><FONT color=#000000>.ToDateTime(dateParameters&#091;0&#093;.InputedValue)</FONT></P><P></FONT><DIV></DIV><DIV></DIV>No matter what I pass, I get a lot of different errors saying invalid query syntax.</P><DIV></DIV>My execution looks something like this:<DIV></DIV><DIV></DIV><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>var</FONT></FONT><FONT size=2> query = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>PassthruEsqlQuery</FONT></FONT><FONT size=2>(entityType, sql);</P><P></FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>ObservableCollection</FONT></FONT><FONT size=2>&lt;</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>EntityBase</FONT></FONT><FONT size=2>&gt; dataSource = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>ObservableCollection</FONT></FONT><FONT size=2>&lt;</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>EntityBase</FONT></FONT><FONT size=2>&gt;(</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Globals</FONT></FONT><FONT size=2>.EntityManager.ExecuteQuery(query).Cast&lt;</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>EntityBase</FONT></FONT><FONT size=2>&gt;().ToList());</P></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Wed, 22 Jul 2009 07:37:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1384&amp;PID=4999#4999</guid>
  </item> 
 </channel>
</rss>