I am using a jquery ui datepicker. I simply want to set the dateFormat to something like: "dd/mm/yy", so my javascript is:
$("#datepicker").datepicker({
dateFormat: "dd/mm/yy"
});
And the relevant html is:
<input type='text' id='datepicker'>
However, doing this restricts the text that can be entered into the input element (I can't enter "-" or "." for example).
I need this functionality because I want users to be able to also freely enter their date with some other "date delimiting" options (eg: "5-5-16"). This is not possible because the "-" symbol cannot be entered after specifying the "dateFormat" option.
Is there a way to fix this or is it a bug?