How to use datepicker utililty function
I have the following input field that I use datepicker to supply it with date:
The above code works fine to show calendar and then pick the selected date into the text field.
<input type="text" id="date" name="date" />
The problem is: I could not know how to use the utility functions regarded in the documentation of the datepicker for something like formatDate, parseDate, etc.
In the documentation links above they told us to use it as following:
My question is: how could I use the second code with the first code to get my datepicker formated and started with a defined date by me?
$.datepicker.formatDate('yy-mm-dd', new Date(2007, 1 - 1, 26));