Twitter bootstrap 引导datetimepicker格式化不';行不通
我正在使用中的引导datetimepicker,我已经看到了这一点,但是当我尝试使用Twitter bootstrap 引导datetimepicker格式化不';行不通,twitter-bootstrap,datepicker,Twitter Bootstrap,Datepicker,我正在使用中的引导datetimepicker,我已经看到了这一点,但是当我尝试使用DD/mm/yyyy格式化它时,它不起作用,它给了我DD/02/2013。我希望它像2013年12月2日星期一那样。有什么帮助吗 这是我的密码: <div class='input-append date' id='datetimepicker1'> <input name="bdate" date-format='DD/mm/yyyy' type='text'
DD/mm/yyyy
格式化它时,它不起作用,它给了我DD/02/2013
。我希望它像2013年12月2日星期一那样。有什么帮助吗这是我的密码:
<div class='input-append date' id='datetimepicker1'>
<input name="bdate" date-format='DD/mm/yyyy' type='text' placeholder="Date"/>
<span class='add-on'>
<i data-date-icon='icon-calendar' data-time-icon='icon-time'>
</i>
</span>
</div>
<script type="text/javascript">
$(function() {
$('#datetimepicker1').datetimepicker({
pickTime:false,
format: 'DD/mm/yyyy'
});
});
</script>
$(函数(){
$('#datetimepicker1')。datetimepicker({
皮克泰姆:错,
格式:“DD/mm/yyyy”
});
});
引导程序没有日期时间选择器。这是jQueryUI小部件!
看看这个
您的格式不正确,请重试
$('#datetimepicker1').datetimepicker({
pickTime:false,
format: 'dd/mm/yy'
});
格式可以是以下内容的组合:
d - day of month (no leading zero)
dd - day of month (two digit)
o - day of the year (no leading zeros)
oo - day of the year (three digit)
D - day name short
DD - day name long
m - month of year (no leading zero)
mm - month of year (two digit)
M - month name short
MM - month name long
y - year (two digit)
yy - year (four digit)
@ - Unix timestamp (ms since 01/01/1970)
! - Windows ticks (100ns since 01/01/0001)
'...' - literal text
'' - single quote
anything else - literal text
引导程序没有日期时间选择器。这是jQueryUI小部件! 看看这个 您的格式不正确,请重试
$('#datetimepicker1').datetimepicker({
pickTime:false,
format: 'dd/mm/yy'
});
格式可以是以下内容的组合:
d - day of month (no leading zero)
dd - day of month (two digit)
o - day of the year (no leading zeros)
oo - day of the year (three digit)
D - day name short
DD - day name long
m - month of year (no leading zero)
mm - month of year (two digit)
M - month name short
MM - month name long
y - year (two digit)
yy - year (four digit)
@ - Unix timestamp (ms since 01/01/1970)
! - Windows ticks (100ns since 01/01/0001)
'...' - literal text
'' - single quote
anything else - literal text
Bootsrap datetimepicker使用MONTJS,下面是链接到 这是正确的代码
$('#datetimepicker1').datetimepicker({
pickTime: false,
format: 'ddd MMM DD YY'
});
Bootsrap datetimepicker使用MomentJS,下面是指向 这是正确的代码
$('#datetimepicker1').datetimepicker({
pickTime: false,
format: 'ddd MMM DD YY'
});
你真的访问了我提供的链接吗?你真的访问了我提供的链接吗?