How do i get OnAir and Time Dates from the controller

datetime: new Date(2014, 11, 31, 21, 00, 00, 00)

this is the data given in JS and from this i need to get the date, time and the date of the week.

{{program.datetime |date }} to get Dec 31, 2014

now what do i do to get time and the day of the week from the datetime data

Its the bolts network #1 exercise

go to this page and read, and then you will know :


See the code below. Now I own your soul.

<ul class="list-group">
                <li class="list-group-item"><span>Date: {{ listing.datetime|date }}</span>  </li>
                <li class="list-group-item"><span>On air: {{ listing.datetime|date:'EEEE' }}</span>  </li>
                <li class="list-group-item"><span>Time: {{ listing.datetime|date:'shortTime' }}</span>  </li>
                <li class="list-group-item"><span>Season: {{ listing.season }}</span>  </li>
                <li class="list-group-item"><span>Genre: {{ listing.genre }}</span>  </li>