getting date from JQueryUI Datepicker

Posted by Shree on Stack Overflow See other posts from Stack Overflow or by Shree
Published on 2010-04-05T11:21:13Z Indexed on 2010/04/05 11:23 UTC
Read the original article Hit count: 383

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-ui