title: Calendar on Angular 2 using PrimeNG date in milliseconds
body: <p>I have time in milliseconds in calendar component of PrimeNG</p>
  
  <p><strong>HTML</strong></p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;p-calendar [(ngModel)]="task.startDate"
      [minDate]="minDateValue"
      [maxDate]="maxDateValue"
      readonlyInput="readonlyInput"
      [showIcon]="true"&gt;
  &lt;/p-calendar&gt;
  </code></pre>
  
  <p><strong>TypeScript</strong></p>
  
  <pre><code>"startDate":1490039621704,
  </code></pre>
  
  <p>But instead I am getting the following error</p>
  
  <pre><code>EXCEPTION: Uncaught (in promise): TypeError: date.getMonth is not a function
  TypeError: date.getMonth is not a function
  </code></pre>
  
  <p>Is there a way to tell the component to read the date in specific format, like in my case it is milliseconds</p>
  
  <h2>Update</h2>
  
  <p>According to documentation <a href="https://www.primefaces.org/primeng/#/calendar" rel="nofollow noreferrer">here</a>, date format in milliseconds should be <em>@ - Unix timestamp (ms since 01/01/1970)</em>
   so I added attribute <code>dateFormat="@"</code> to the component, but doesn't seem to fix it.</p>