title: Assign value into linq expression Select statement
body: <p>I'm trying to assign value into <code>Select</code> statement and want to convert <code>Date</code> in specific string format.</p>
  
  <p>I'm trying to convert my existing <code>Date</code> into <code>DateISO 8601 standard format.</code></p>
  
  <pre><code>IEnumerable&lt;message&gt; messageObj= // list of message from DB;
  messageObj.Select(x =&gt; x.created_at= DateTime.Parse(x.created_at.ToString("s", System.Globalization.CultureInfo.InvariantCulture))).ToList();
  </code></pre>
  
  <p>I'm unable to use <code>ToString</code> for <code>created_at</code> inside <code>linq lambda expression</code>.</p>
  
  <p>How can I achieve this? </p>