仅显示日期MVC

dUn*_*DoN 1 c# asp.net-mvc

我有这个 model

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Text;
namespace PrototypeHelp.Models
{

    public class DocumentModel
    {   
        public int documentID { get; set; }
        public String Title { get; set; }
        public DateTime DateCreated { get; set; }
        public String Description { get; set; }
        public int authorID { get; set; }
        public String AuthorName { get; set; }
        public int categoryID { get; set; }
        public String Category { get; set; }
        public int topicID { get; set; }
        public String Topic { get; set; }
        [AllowHtml]
        public String DocumentBody { get; set; }
    }
}
Run Code Online (Sandbox Code Playgroud)

我只想使用显示日期,jquery但无法摆脱“ DateCreated”中的日期。

谁能帮我?我正在使用显示它jquery

Vin*_*ngh 5

在模型定义中使用此日期

[DataType(DataType.Date)]
[DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
Run Code Online (Sandbox Code Playgroud)