title: How to customize jquery ui date picker?
body: <p>I want to customize jquery ui date picker by setting server date as current date. </p>
  
  <p>After refering a <a href="https://stackoverflow.com/questions/1953840/datepickersetdate-issues-in-jquery">question</a> </p>
  
  <p>i wrote down </p>
  
  <pre><code>var queryDate = '2012-11-15',
      dateParts = queryDate.match(/(\d+)/g)
      realDate = new Date(dateParts[0], dateParts[1] - 1, dateParts[2]);  
                                  // months are 0-based!
  
  
  $('#datepicker').datepicker('setDate', realDate);
  $('#datepicker').datepicker({ dateFormat: 'yy-mm-dd' });
  </code></pre>
  
  <p>it works, but when i change second step to </p>
  
  <pre><code>$('#datepicker').datepicker({ dateFormat: 'yy-mm-dd',minDate: 0,maxDate: '+6M' });
  </code></pre>
  
  <p>it shows dates according to the system date not the server date which i had assigned,</p>
  
  <p>How to solve this??</p>