DatePicker StartDate cannot equal to EndDate

DatePicker StartDate cannot equal to EndDate

Hi,
How to disable the date selection so that StartDate and EndDate is not equal.
For example, if I selected the StartDate is "16/01/2013", then in EndDate I should only able to select start from "17/01/2013" until current date. And if EndDate is "20/01/2013", then selection date for StartDate should start from any date until "19/01/2013".
Below is my code, I don't know what should I add to match with the requirement:
  1.       $(function () {
  2.             $("#startDate").datepicker({
  3.                 maxDate: 0,
  4.                 onClose: function (selectedDate) {
  5.                     $("#endDate").datepicker("option", "minDate", selectedDate);
  6.                 }
  7.             });
  8.             $("#endDate").datepicker({
  9.                 maxDate: 0,
  10.                 onClose: function (selectedDate) {
  11.                     $("#startDate").datepicker("option", "maxDate", selectedDate);
  12.                 }
  13.             });
  14.         });
Please guide/help.


Thanks.