Sign up to request clarification or add additional context in comments.
Comments
4
<%= item.startDate.ToShortDate() %>
The above will take into account the current Locale and format it as the locale dictates. There is also no point in using Html.Encode() since it's impossible for the output of the date function to contain anything dangerous that needs encoding.