title: Ionic 3 DateTime - Show picker with current date when model is undefined
body: <p>I'm developing an application using Ionic 3 and I'm having a issue using <a href="http://ionicframework.com/docs/api/components/datetime/DateTime/" rel="nofollow noreferrer">DateTime</a> component. Supose I have a DateTime component in the user interface, and it is optional, so, the default value is optional. There is no min date and max date is 2 years from current date: </p>
  
  <pre><code>&lt;ion-datetime displayFormat="DD/MM/YYYY" [(ngModel)]="dataInicial" doneText="Feito"
        cancelText="Cancelar" [max]="maxDate"&gt;
  &lt;/ion-datetime&gt;
  
  export class AbaPedidosConfirmadosPage {
  
      dataInicial:Date;
      maxDate:string;
  
      constructor() {
          this.maxDate = moment().add(2, 'years').format('YYYY');
      }
  }
  </code></pre>
  
  <p>So the question is: Is there a way the picker appears with current date selected when the model is undefined (or null)? This is for usability, in this case if the user needs select tomorrow date, it will need change the year, then the month and finally the day; if it loads the picker content in the current date, the user only need change the day.</p>
  
  <p>I've tryied just create a directive to load the current date on click, but it was fired after the DateTime component proccess the event:</p>
  
  <pre><code>@Directive({
      selector: '[load-date]'
  })
  export class LoadDateDirective {
  
      private lastValue:any;
  
      @Input() public ngModel:any;
      @Output('ngModelChange') modelChange:EventEmitter&lt;string&gt; = new EventEmitter&lt;string&gt;();
  
      public constructor(private _elementRef:ElementRef,
                     private _renderer:Renderer) {
  
      }
  
      @HostListener('click', ['$event'])
      _click(ev: UIEvent) {
          this.lastValue=this.ngModel;
          if(!this.lastValue) {
              ev.preventDefault();
              ev.stopPropagation();
              this.modelChange.next(moment().format('YYYY-MM-DD'));
          }
      }
  }
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>I will try to explain it better. Here is the actual field, when the user clicks in the field, the picker shows the max date configured:</p>
  
  <p><a href="https://i.stack.imgur.com/21vjm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/21vjm.png" alt="Current date picker"></a></p>
  
  <p>As I have no idea of which date user wants select, the desired behaviour would be the picker appearing with the current date, like this:</p>
  
  <p><a href="https://i.stack.imgur.com/BA6CH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BA6CH.png" alt="Desired date picker"></a></p>
  
  <p>As these fields are used to filter the results by date, they are optional, so the server returns everything if the dates are null.</p>