Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.

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

1 solution

The following works for me:

$(function() {
$('#ID').datepicker({dateFormat: 'dd/mm/yy'});
});

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900