我的问题类似于Remove Leading "0" in day of month SimpleDateFormat
是否可以删除前导" 0"在jquery UI datepicker?
DateFormat option尽可能接近文档:
$( ".selector" ).datepicker({ dateFormat: "yy-mm-dd" });
但我需要的是在2012年12月5日这样的日期,datepicker将其显示为12/05/2012,而我希望有12/5/2012。同样适用于4月5日:例如2013年4月5日。
这可以在没有广泛逻辑的情况下完成吗?