Have you ever wanted to display a datetime value in a gridview, with a specific format? It doesn't always work intuitively because the <asp:BoundField> uses HtmlEncoding by default to prevent cross site scripting ( as referenced here ), so DateTime...