<input asp-for="Created" class="form-control" />
[Bind("ID,Author,Created,Image")]
[DataType(DataType.DateTime)]
[DisplayFormat(DataFormatString = "{0:dd MMMM yyyy}", ApplyFormatInEditMode = false)]
public DateTimeOffset Created { get; set; }
当我删除Bind It有效。空字符串也是有效的。我尝试添加input type =“text”并格式化datetime