How take date in class constructor? : <p>have json</p>

<pre><code>{"id":1,"name":"123","dateoff":"2016-01-12T13:30:46.358+05:00","available":true}
</code></pre>

<p>and have class</p>

<pre><code>export class Compaing {
    constructor(public id: number, public name: string,
                public dateoff: Date, public available:boolean) { }
}
</code></pre>

<p>But when i use in angular2 </p>

<pre><code>&lt;Compaing&gt;res.json()
</code></pre>

<p>It dont work. In compaing.dateoff not date, it's string.
How parse json string date to Date with constructor?</p>
