My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 2: Problem about Date Range
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by Sunti...@gmail.com, Sep 1, 2011

I try to use date range like this 
http://jqueryui.com/demos/datepicker/date-range.html



$(".txtDateRange").live("mouseover", function () {
   var dates = $(".txtDateFrom, .txtDateTo").datepicker({
      dateFormat: 'dd-mm-yy',
      isBE: true,
      autoConversionField: true,
      changeMonth: true,
      changeYear: true,
      onSelect: function (selectedDate) {
         var option;

         if (this.id.indexOf('txtDateFrom') > -1)
            option = "minDate";
         else
            option = "maxDate";

         //Set Option
         instance = $(this).data("datepicker"),
         date = $.datepicker.parseDate(
         instance.settings.dateFormat ||
         $.datepicker._defaults.dateFormat,
         selectedDate, instance.settings);

         dates.not(this).datepicker("option", option, date);
      }
   });
});


But it doesn't work. What's wrong with this code.





Apr 3, 2014
#2 i.tanask...@gmail.com
If you would like to work you need to set date for maxDate or minDate in gregorian calendar instead of puting 4/4/2557 you need to put 4/4/2014

Powered by Google Project Hosting