Click here to Skip to main content
15,899,126 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I am using a date range picker of the below version,

* by Scott Jehl, scott@filamentgroup.com
* reference article: http://www.filamentgroup.com/lab/update_date_range_picker_with_jquery_ui/
* demo page: http://www.filamentgroup.com/examples/daterangepicker/

I have implemented my own customized options along with the functions, but i am unable to getting the updated dates with the selections.

C#
{ text: 'Last Month', dateStart: function () { return Date.parse('1 month ago').moveToFirstDayOfMonth(); }, dateEnd: function () { return Date.parse('1 month ago').moveToLastDayOfMonth(); } },
              {text: 'This Month Last Year', dateStart: function () { return Date.parse('1 year ago').moveToFirstDayOfMonth(); }, dateEnd: function () { return Date.parse('1 year ago').moveToLastDayOfMonth(); } },


The "lastMonth" option is working fine but when i am selecting the "ThisMonthLastYear" option again the Last month is not working properly.On another click on the "LastMonth" then it's working

Please give suggestions...
Thanks
Posted
Comments
Sunasara Imdadhusen 4-Jun-13 5:49am    
What is error?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900