user6721756 user6721756 - 22 days ago 6
AngularJS Question

Change date format in listing

I'm new in Angular.

I want to display db date in 'Sat Mar 10 2001' in this format

How can i put this in my code.

code sample

<td>{{data.act_date}}<td> //format:mm/dd/yyyy

Answer

You can use the angular date filter,

 <pre>  {{ dateBirth | date: 'fullDate' }}</pre>

DEMO