Ticket #3526 (closed bug: fixed)

Opened 7 years ago

Last modified 3 years ago

Default Year is 1998 with options: changeYear:false, dateFormat: 'dd.mm.'

Reported by: insekticid Owned by: grabanski
Priority: major Milestone:
Component: ui.datepicker Version: 1.6rc2
Keywords: Cc:
Blocking: Blocked by:


$('#datepicker').datepicker({'minDate':$.datepicker.parseDate("yy-mm-dd", "2008-10-29"),'maxDate':$.datepicker.parseDate("yy-mm-dd", "2008-11-06"),'changeYear':false,'dateFormat':'mm.dd.'});

There is coloring problem with selected date, when I set limits for datepicker (date range), disable changeYear and set format to 'dd.mm.'

range is 2008-10-29 - 2008-11-06 I set date to '10-29' and open the datepicker, but there is no TABLE -> TD cell with class 'ui-datepicker-current-day'. Why? because default year is not 2008 (what I expect), but 1998!

So date in datepicker is 1998-10-29 instead 2008-10-29

Change History

comment:1 Changed 7 years ago by kbwood

  • Status changed from new to closed
  • Resolution set to fixed

The year is now defaulted to the current one if not set in the input field.

comment:2 Changed 3 years ago by scott.gonzalez

  • Milestone TBD deleted

Milestone TBD deleted

Note: See TracTickets for help on using tickets.