<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - Coffeehouse - How to Use DateTime.Tostring(&quot;dd/MM/yyyy hh:mm:ss&quot;) while creating expression tree?</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - Coffeehouse - How to Use DateTime.Tostring(&quot;dd/MM/yyyy hh:mm:ss&quot;) while creating expression tree?</title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Tue, 21 May 2013 17:47:04 GMT</pubDate>
	<lastBuildDate>Tue, 21 May 2013 17:47:04 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>3</c9:totalResults>
	<c9:pageCount>-3</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Coffeehouse - How to Use DateTime.Tostring(&quot;dd/MM/yyyy hh:mm:ss&quot;) while creating expression tree?</title>
		<description><![CDATA[<p>Hi ,</p><p>I want to apply&nbsp;DateTime.Tostring(&quot;dd/MM/yyyy hh:mm:ss&quot;) to the left side of expression</p><p>for that I am using following code</p><p><pre class="brush: csharp"> var variable = Expression.Variable(typeof(Report));

  MethodInfo method = typeof(DateTime).GetMethod(&quot;ToString&quot;, new[] { typeof(string) });

Expression ExprLeft = Expression.Call(Expression.Property(variable, oFC.Field), method,Expression.Parameter( typeof(string),&quot;MM/dd/yyyy hh:mm:ss&quot;));</pre></p><p>But it is giving me error ,I guess I am using incorrect syntax to define method parameter.</p><p>Can you please provide me exact syntax to achieve this.</p><p>&nbsp;</p><p>&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/How-to-Use-DateTimeTostringddMMyyyy-hhmmss-while-creating-expression-tree/320e0efa73e347caac98a04500bbe683#320e0efa73e347caac98a04500bbe683</link>
		<pubDate>Wed, 02 May 2012 11:24:07 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/How-to-Use-DateTimeTostringddMMyyyy-hhmmss-while-creating-expression-tree/320e0efa73e347caac98a04500bbe683#320e0efa73e347caac98a04500bbe683</guid>
		<dc:creator>Somnath Sonawne</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/somnath2107/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - How to Use DateTime.Tostring(&quot;dd/MM/yyyy hh:mm:ss&quot;) while creating expression tree?</title>
		<description><![CDATA[<p>Have you used the <a href="http://code.msdn.microsoft.com/windowsdesktop/LINQ-Expression-Tree-47608cb5">Expression Tree Visualizer</a>?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/How-to-Use-DateTimeTostringddMMyyyy-hhmmss-while-creating-expression-tree/8da9b574e99f45418143a04500c9cf51#8da9b574e99f45418143a04500c9cf51</link>
		<pubDate>Wed, 02 May 2012 12:14:46 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/How-to-Use-DateTimeTostringddMMyyyy-hhmmss-while-creating-expression-tree/8da9b574e99f45418143a04500c9cf51#8da9b574e99f45418143a04500c9cf51</guid>
		<dc:creator>Joshua Ross</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Jsoh/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - How to Use DateTime.Tostring(&quot;dd/MM/yyyy hh:mm:ss&quot;) while creating expression tree?</title>
		<description><![CDATA[<p>I think you want to be using <code class="csharp string"></code></p><p><code class="csharp string"><a href="http://msdn.microsoft.com/en-us/library/bb338689.aspx">Expression.Constant</a>(&quot;MM/dd/yyyy hh:mm:ss&quot;,typeof(string))</code></p><p>rather than Expression.Parameter().</p><p>Yes you are using the value as a parameter to be passed to the MethodCallExpression, but it isn't a parameter of the lambda, its just a constant string included in the expression tree.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/How-to-Use-DateTimeTostringddMMyyyy-hhmmss-while-creating-expression-tree/d68c8aac48cd489c86cda04500d64430#d68c8aac48cd489c86cda04500d64430</link>
		<pubDate>Wed, 02 May 2012 13:00:07 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/How-to-Use-DateTimeTostringddMMyyyy-hhmmss-while-creating-expression-tree/d68c8aac48cd489c86cda04500d64430#d68c8aac48cd489c86cda04500d64430</guid>
		<dc:creator>eddwo</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/eddwo/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>