c# date format change
<p>I am trying to change the format of the date. I would like to set an "M" specifier. So that the date would be seen as "Day / Month" and not as I am currently seeing it ("Full date and time").</p>

<p>This is the code I would like to modify:</p>

<pre><code>alerts = _alertService.GetAlertsByAccountID(userId).Where(
    al =&gt; (!al.isHidden &amp;&amp; al.CreateDate&lt;=DateTime.Now)
).ToList();
</code></pre>
