Answers for "angularjs date format pipe in controller"

15

angular date pipe

// In Angular 
// Html
<p>{{myDate | date: 'dd-MM-yyyy'}}</p>
// Typescript
myDate: Date = new Date();
Posted by: Guest on July-13-2020
0

how to convert date format using date pipe in angular

var datePipe = new DatePipe();
    this.setDob = datePipe.transform(userdate, 'dd/MM/yyyy');
Posted by: Guest on April-15-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language