title: Format date with angular2 moment
body: <p>I'm getting following error, when using <code>amTimeAgo</code> pipe from <a href="https://github.com/urish/angular2-moment" rel="nofollow noreferrer">angular2-moment</a>.</p>
  
  <blockquote>
    <p>Deprecation warning: value provided is not in a recognized RFC2822 or ISO format.<br>
       moment construction falls back to js Date(), which is not reliable across all browsers and versions. <br>
       Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. <br>
       Please refer to <a href="http://momentjs.com/guides/#/warnings/js-date/" rel="nofollow noreferrer">http://momentjs.com/guides/#/warnings/js-date/</a> for more info.<br>
       Arguments: 
        [0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: 21-03-2017, _f: undefined, _strict: undefined, _locale: [object Object]</p>
  </blockquote>
  
  <p>Also pipe is printing <code>Invalid date</code>.</p>
  
  <p>I'm using it like this:
      <code>&lt;span class="date-created"&gt; {{ job.createdAt | amTimeAgo }} &lt;/span&gt;</code></p>
  
  <p>And value of <code>job.createdAt</code> is string in format: <code>22-03-2017</code>.</p>
  
  <p>I understand that something is wrong with format, but don't know how to pass that custom format <code>('DD-MM-YYYY')</code> to pipe, so that <code>moment</code> package and this angular library can recognize it. </p>
  
  <p>Any ideas?</p>