title: Set current date as maxDate in Titanium
body: <p>I'm developing an <code>Android</code> application using <code>Appcelerator Titanium</code>.</p>
  <p>In that application I need to show a date picker when a particular text field is selected. The maximum value of date should be limited to current date and minimum value should be limited to <code>1990 Jan 1</code>.</p>
  <h3>What I have tried so far</h3>
  <h3>1</h3>
  <pre><code>dateEntry.addEventListener('focus', function(e) {
      var date = dateEntry.value;
      var picker = Ti.UI.createPicker({
          type:Ti.UI.PICKER_TYPE_DATE,
          minDate:new Date(1990,01,01),
          maxDate:new Date(),
          value:new Date(),
      });
      picker.showDatePickerDialog({
          value: new Date(),
          callback: function(e) {
              if (e.cancel)
              {
                  dateEntry.value = date;
              }
              else
              {
                  date = e.value;
                  dateEntry.value = date;
              }
              dateEntry.blur();
          }
      });
  });
  </code></pre>
  <p>But it is not working.</p>
  <h3>2</h3>
  <p>I set <code>maxDate</code> and <code>minDate</code> for the <code>pickerDialog</code> also but it also not working.</p>
  <h3>3</h3>
  <p>I hard-coded the current date as maxDate, it is also not working.</p>
  <p>How can I achieve this ? Please help me, Thanks in advance.</p>