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:
var value = $("#myDate").datepicker("getFormattedDate");