更改datetimepicker插件中的日期格式? [英] change date format in datetimepicker plugin?

查看:103
本文介绍了更改datetimepicker插件中的日期格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改此示例的澳大利亚日期格式?
http://trentrichardson.com/examples/timepicker/

how to change to australian date format for this example? http://trentrichardson.com/examples/timepicker/

推荐答案

试试这个:

 jQuery(".ClassName").datetimepicker({
        showSecond: true,
        timeFormat: 'hh:mm:ss',
        dateFormat: 'yy-mm-dd'
 });

您可以定义上面的任何日期格式。

You can define any date format above.

这篇关于更改datetimepicker插件中的日期格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆