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>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.