title: Configure moment custom date adapter
body: <p>I have used moment date adapter. So the main issue which I'm facing is whenever I type date like 1/12/56 and after pressing tab it auto corrects to 2056 instead of 1956. And only it shows correct year whenever I type 69-99 and it changes to "19"</p>
  
  <p><a href="https://i.stack.imgur.com/quhV6.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/quhV6.gif" alt="enter image description here"></a></p>
  
  <p>My custom date adapter code is:</p>
  
  <pre><code>import { Inject, Injectable, Optional } from "@angular/core";
  import { MAT_DATE_LOCALE } from "@angular/material";
  import { MomentDateAdapter } from "@angular/material-moment-adapter";
  import { Moment } from "moment";
  import * as moment from "moment";
  
  @Injectable()
  export class MomentUtcDateAdapter extends MomentDateAdapter {
      constructor(@Optional() @Inject(MAT_DATE_LOCALE) dateLocale: string) {
          super(dateLocale);
      }
  
      createDate(year: number, month: number, date: number): Moment {
          return moment({ year, month, date });
      }
  }
  </code></pre>