I'm using the jQuery date selector in an app I'm writing. However the date format isn't correct to the calendar I'm appending it to and when I try to change the format with the functions defined in the API documentation, however none of them have worked.
What I've tried: 1.
$(".selector").datepicker({
altFormat: "yy-mm-dd"
});
Does not produce error but simply doesn't work
2.
$("#datepicker").formatDate("yy-mm-dd");
Produces error:
$(...).formatDate is not a function
Thanks