如何显示月份的第一个日期? [英] How to display first date then month?

查看:53
本文介绍了如何显示月份的第一个日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Jquery来显示日历。我创建了一个文本框,在文本框中单击后,日历打开。但是当我手动设置日期时,它总是在第一个月,然后是日期。但我想把它作为第一个日期然后一个月。假设我将2015年6月19日以这种方式推出2015年6月19日,但由于我的代码在一个月内计算为19,因此未显示。请帮忙。下面是我的代码。



I am using Jquery to display a calender. I have created a text-box, after clicking in the text-box the calender is opening. But when I am putting a date manually, it always taking first month, then date. But I want to make it first date then month. Suppose I am putting 19th June 2015 in this way 19/06/2015, but it is not showing as my code is counting 19 as a month. Please help. Below is my code.

script type="text/javascript">
        $(function () {
            $("#datepicker").datepicker();
        });
    </ script>
<body>
<input type="text" id="datepicker">
</body>

推荐答案

function (){


#datepicker)。datepicker();
} );
< / script >
< body>
< input type = text id = datepicker>
< / body >
("#datepicker").datepicker(); }); </ script> <body> <input type="text" id="datepicker"> </body>


以下适用于我:


The following works for me:


这篇关于如何显示月份的第一个日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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