/// <summary>
/// 创建时间
/// </summary>
//[DataType(DataType.Date)]
//[DisplayFormat(DataFormatString=”(yyyy-MM-dd HH:mm:ss)”, ApplyFormatInEditMode = true)]
// CreateTime=”2018-03-09T14:56:40.483″,
private DateTime _createTime;
public string CreateTime
{
get { return _createTime.ToString(“yyyy-MM-dd HH:mm:ss”); }
set { _createTime = Convert.ToDateTime(value); }
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/281622.html