我的模型
[Display(Name = "Tanggal Lahir")]
[DataType(DataType.Date)]
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd/MM/yyyy}")]
public DateTime TanggalLahir { get; set; }
我的观点
@Html.EditorFor(m => m.TanggalLahir)
但它仍然以MM/dd/yyyy格式显示数据。 即使我的web.config文件中
<system.web>
<globalization uiCulture="en" culture="en-GB"/>
<authentication mode="None" />
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" maxRequestLength="30000000" />
</system.web>