我系统选择的语言是法语。
当我从ASP .net mvc 4应用程序中的Model获取日期值时,我正在获取法语日期。.当我尝试对此执行JavaScript应用程序时,它给了我无效的日期
我想要防止这种情况发生的想法,或者想要在JavaScript中处理法语日期的想法
以下是ViewModel中的绑定
[Required(AllowEmptyStrings = false,ErrorMessageResourceName = "Required",ErrorMessageResourceType = typeof(Resources_Global))]
[Display(Name = "Label_ReviewDate",ResourceType = typeof(Resources.Admin.Resources_Admin))]
[DisplayFormat(DataFormatString = "{0:dd MMMM yyyy}",ApplyFormatInEditMode = true)]
[DataType(DataType.DateTime)]
public DateTime? ReviewDate { get; set; }
在我的html页面中,我正在使用asp .net MVC EditorFor
@Html.EditorFor(m => m.ReviewDate)