I've a function that gets a list of Users. Each individual user has a last_logged
field which shows the last logged in time in this format 2017-02-04 19:54:47
. What I need to do is display that field on the page in this format Saturday, February 2, 2017 - 19:54:47
.
Currently the time format is 2017-02-04 19:54:47
(native datetime format)
How can I format it such that it shows Saturday, February 2, 2017 - 19:54:47
<table>
<thead>
<tr>
<th>Username</th>
<th>Last Login</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="user in users">
<td>{{ user.username }}</td>
<td>{{ user.last_login }}</td>
</tr>
</tbody>
</table>