简体   繁体   English

JQuery datepicker 未通过在我的 asp.Net 核心应用程序中发布来发送选定的值

[英]JQuery datepicker not sending selected value by posting in my asp.Net core application

Please forgive me if I am asking a previously asked question.如果我问的是以前提出的问题,请原谅我。 But I get stacked in this problem.但是我被这个问题所困扰。 Please help me.请帮我。

I am using jQuery datepicker in my project.我在我的项目中使用jQuery 日期选择器 I can see the datepicker in browser well.我可以在浏览器中很好地看到日期选择器。 But when I am posting only the selected value of datepicker not going to my PostAction where all other values are working properly.但是,当我只发布datepicker 的选定值时,不会进入我的 PostAction,所有其他值都正常工作。 Timepicker also sending selected value Please help me to get rid of this problem. Timepicker也发送选定的值请帮助我摆脱这个问题。

Thanks in advance.提前致谢。

This is my browser view这是我的浏览器视图

Script section脚本部分

Form fields表单域

Js and CSS file js和CSS文件

Model Properties Model 属性

Here is the posted value from browser这是来自浏览器的发布值

The date format of System.Datetime was dd-mm-yy . System.Datetime的日期格式为dd-mm-yy But the date format of datepicker is mm-dd-yy .但是 datepicker 的日期格式是mm-dd-yy When I was selecting date from datepicker it was selecting a wrong value where format was not getting matched with the format of model property.当我从 datepicker 中选择日期时,它选择了一个错误的值,其中格式与model属性的格式不匹配。

That's why I was facing this problem.这就是我面临这个问题的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM