Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 Jquery 中获取本地机器日期时间格式?表示本地日期时间格式是否为 "MM-dd-yyyy" ,所以我想在 jquery 中获取这种格式。或如何在 jquery 中将我的任何日期时间转换为本地日期时间格式?
您可以在 jquery datepicker 中更改日期格式,如下所示:
var date = $('#datepicker').datepicker({ dateFormat: 'dd-mm-yy' }).val();
这个Link、Link和Link可能会有所帮助。