Defining the date format as "dd/MM/yy" works as the input value for the DatePicker, but when you select the desired date on the calendar, the value it returns is always in the format MM/dd/yy regardless of whether You have previously changed it.
<script>
//connect to the web socket when the page is ready.
$( document ).ready(function() {
//set the date picker and also bind the event.
$("#datepicker").datepicker({
onSelect: function(dateText, inst) {
//raise the event.
b4j_raiseEvent(this.id + "_select", {});
},
showButtonPanel: true,
dateFormat: "mm/dd/yy"
});
b4j_connect("/datepicker/ws");
});
</script>
<script>
//connect to the web socket when the page is ready.
$( document ).ready(function() {
//set the date picker and also bind the event.
$("#datepicker").datepicker({
onSelect: function(dateText, inst) {
//raise the event.
b4j_raiseEvent(this.id + "_select", {});
},
showButtonPanel: true,
dateFormat: "mm/dd/yy"
});
b4j_connect("/datepicker/ws");
});
</script>