@using System.Globalization
@model DateTime
@{
	Layout = "~/Views/Shared/DisplayTemplates/_FieldLayout.cshtml";
    var val = 
        ViewData.ModelMetadata.DisplayFormatString != null
        ?string.Format(ViewData.ModelMetadata.DisplayFormatString, Model) 
        : Model.ToString(CultureInfo.InvariantCulture);
}
@Html.Encode(val)