I\'m using Bootstrap datepicker. The answer is probably obvious, but I can\'t figure out how to get the selected date as a string in the specified format. I used:
If you want the value as a string use: var value = $("#myDate input").val();
The method getDate returns an object