如何在mvc中转换日期格式,如dd / mm / yyyy [英] how to convert date format like dd/mm/yyyy in mvc
本文介绍了如何在mvc中转换日期格式,如dd / mm / yyyy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
在我的模型中,我有日期格式,但现在我想改变dd / mm / yyyy。如果我改变这种格式(dd / mm / yyyy),我会改变日期选择器。我得到错误输入有效日期在这里我使用所有的方法,如服装验证,全球化,日期格式我所用,但我得到一个error.how来解决这个错误。
解决方案
< blockquote> Hi
如果您使用日期选择器,那么您可以根据您的要求设置日期格式。
hi to all,
In my model i have date format but now i want to change dd/mm/yyyy .how to change if i change this format(dd/mm/yyyy) using datepicker. i got error enter valid date here i use all the methods like costume validation,globalize,date format all i used but i got an error.how to resolve this error.
解决方案
Hi If you are using the date-picker then you can set the date format as per your requirement there.
这篇关于如何在mvc中转换日期格式,如dd / mm / yyyy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文