longbill / jquery-date-range-picker

A jQuery plugin that allows user to select a date range
MIT License
1.12k stars 579 forks source link

want to be able to get complete date from date parameter in function showDateFilter #439

Closed aiso-net closed 6 years ago

aiso-net commented 6 years ago

Hello,

Right now the date parameter returns only the day and not the month or the year and I would like it to return the complete date so I could do date.day, date.month and date.year. I have a ajax call for the pricing and it needs to know the complete date to return the price for that day. How can I do this?

Thanks for your hard work on a great date picker!

aiso-net commented 6 years ago

actually I can use the timestamp parameter, but calling an ajax query for each date appears to not work, as the calendar loads faster then 60 ajax queries can get the data, so I just get undefined then the return is after I get the data for the day or nothing shows under the date if the return is after the ajax call