getting date from JQueryUI Datepicker
- by Shree
I am using JQueryUI datepicker. I am currently using following:
$('#dtpicker').datepicker('getDate');
to get date from the datepicker. This function by default gets me today's date if the user has not selected any date in the picker. Is there some function which gets the date the user has selected? For example, if the user has selected today's date, the function should return today's date. If he didnt select any date, then this function should return false, perhaps.
I want this function for validation of date ranges in JQueryUI daterangepicker which currently it is not supporting.