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();
}
More Related Contents:
- jQuery UI DatePicker to show month year only
- Can the jQuery UI Datepicker be made to disable Saturdays and Sundays (and holidays)?
- putting datepicker() on dynamically created elements – JQuery/JQueryUI
- How to reload current page without losing any form data?
- How to disable text selection using jQuery?
- Javascript Drag and drop for touch devices [closed]
- How do I pre-populate a jQuery Datepicker textbox with today’s date?
- Prevent jQuery UI dialog from setting focus to first textbox
- How to change the pop-up position of the jQuery DatePicker control
- Javascript Array Concat not working. Why?
- Combine multiple JavaScript files into one JS file [closed]
- jQuery UI Accordion Expand/Collapse All
- How to change date format (MM/DD/YY) to (YYYY-MM-DD) in date picker
- jQuery Drag/Resize with CSS Transform Scale
- Apply jQuery datepicker to multiple instances
- How do I drag multiple elements at once with JavaScript or jQuery?
- Trees in Twitter Bootstrap [closed]
- jQuery UI AutoComplete: Only allow selected valued from suggested list
- Customizing the Add/Edit Dialog in jqGrid
- jQuery UI Dialog Box – does not open after being closed
- Submit jQuery UI dialog on
- JQuery show and hide div on mouse click (animate)
- showing progressbar progress with ajax request
- jQuery UI autocomplete with objects
- jQuery Datepicker “After Update” Event or equivalent
- AutoComplete in jQuery with dynamically added elements
- Automatically resize jQuery UI dialog to the width of the content loaded by ajax
- Differentiate between focus event triggered by keyboard/mouse
- How to use jQuery UI with Angular 2
- Queue AJAX calls