title: AutoMapper and convert a datetime to string
body: <p>I can't get my head round the following issue. I have a feeling it is a limitation of LINQ and expression trees, but not sure how to accept the lambda body. Can I achieve this WITHOUT creating a custom converter?</p>
  
  <pre><code> Mapper.CreateMap&lt;I_NEWS, NewsModel&gt;()                  
                .ForMember(x =&gt; x.DateCreated, opt =&gt; opt.MapFrom(src =&gt; {
                    var dt = (DateTime)src.DateCreated;
                    return dt.ToShortDateString();                      
                }));
  </code></pre>
  
  <p>I'm getting this error:
  <strong>A lambda expression with a statement body cannot be converted to an expression tree</strong> </p>