Here’s one specific for your code:
var date = $('#datepicker').datepicker({ dateFormat: 'dd-mm-yy' }).val();
More general info available here:
More Related Contents:
- Select only specific dates in jQuery UI datepicker (date list comes from AJAX)
- jQuery UI DatePicker to show month year only
- jQuery Date Picker – disable past dates
- How do I pre-populate a jQuery Datepicker textbox with today’s date?
- JQuery ui – date picker, disabling specific dates
- Disable future dates in jQuery UI Datepicker
- Setting min date in jQuery datepicker
- Jquery datepicker – only day and month
- jQuery ui datepicker conflict with bootstrap datepicker
- Getting value from JQUERY datepicker
- How do I clear/reset the selected dates on the jQuery UI Datepicker calendar?
- Jquery Date picker Default Date
- jQuery UI: Datepicker set year range dropdown to 100 years
- Dialog box runs for 1 sec and disappears?
- How to implement “confirmation” dialog in Jquery UI dialog?
- How to change the pop-up position of the jQuery DatePicker control
- jQuery UI Datepicker onchange event issue
- Jquery datepicker restrict dates in second date field based on selected date in first date field
- Jquery Datepicker Chrome
- jQuery drag and drop simulation does not work for the last draggable
- jQuery UI Datepicker – Disable specific days
- How to get the position of a draggable object
- How to close jQuery Dialog within the dialog?
- Correctly calling setGridWidth on a jqGrid inside a jQueryUI Dialog
- How to add jQueryUI library in MVC 5 project?
- How to exclude an element from being dragged in sortable list?
- Uncaught TypeError: Object [object Object] has no method ‘dialog’
- Selecting a jQuery Tab using a parameter in the URL
- JQuery Datepicker – no default date
- How to programmatically select selectables with jQuery UI?