user6721756 user6721756 - 1 year ago 86
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 Source

You can use the angular date filter,

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


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download