Date in typescript in my angular 2 application
<p>I'm in the middle of making some test data to my views, before I make the API calls to the API application.</p>

<p>In a service in my angular 2 application, I have created a interface which looks like this:</p>

<pre><code>export interface amendmentBookings {
    bookingNumber: string;
    outboundDate: Date;
    returnDate: Date;
    route: string;
    Passengers: string;    
    vehicleType: string;
}
</code></pre>

<p>I have also created an array which must consist of type to this interface. The code looks like this:</p>

<pre><code>var bookings: amendmentBookings[] = [
    {
        bookingNumber: "123456789",
        outboundDate: 
        returnDate:
        route: "Dünkirchen - Dover",
        vehicleType: "Car 1.85m x 4.5m",
        Passengers: "1 adult and 1 child"
    },
]
</code></pre>

<p>How can I insert a date in my test data?</p>

<p>I have tried with the new Date() which you use in javascript, like this:</p>

<pre><code>new Date("February 4, 2016 10:13:00");
</code></pre>

<p>But that does not work..</p>