I want to get the date from datepicker whenever user choose the date in jQuery UI datepicker and click the button on the form.
well I need to get the day, month and
Use
var jsDate = $('#your_datepicker_id').datepicker('getDate'); if (jsDate !== null) { // if any date selected in datepicker jsDate instanceof Date; // -> true jsDate.getDate(); jsDate.getMonth(); jsDate.getFullYear(); }