Problem with days and months starting with 0

Problem with days and months starting with 0

I have a JSP page who fill the variable "disableDays" below with dates.

  1. var disDays = [<%= datasPermitidasDeReserva %>];

However, the dates returned by the JSP can look like this:

02/09/2010, 11/02/2009 ...

I figured out that the UI Date Picker doesn't work for months and days that starts with 0. In other words, if the dates above were written like this: 2/9/2009 and 11/2/2009 then it would work.

I'd like to know if there is something I can do directly into the Date Picker options so it can accept days and months that starts with 0.

Here is my code:
  1.     <script type="text/javascript">
  2.          $(document).ready(function(){
  3.             $("#data1").datepicker({
  4.                   minDate: '0',
  5.                   maxDate: '+1Y',
  6.                   dateFormat: 'dd/mm/yy',
  7.                   beforeShowDay:  disableDays,
  8.                   changeMonth: true
  9.             });
  10.          });

Thank you in advance.

PS: Sorry for my English.