typescript convert date to string format dd 2fmm 2fyyyy

Solutions on MaxInterview for typescript convert date to string format dd 2fmm 2fyyyy by the best coders in the world

showing results for - "typescript convert date to string format dd 2fmm 2fyyyy"
Natalia
05 Apr 2018
1import { DatePipe } from '@angular/common'
2...
3constructor(public datepipe: DatePipe){}
4...
5myFunction(){
6 this.date=new Date();
7 let latest_date =this.datepipe.transform(this.date, 'yyyy-MM-dd');
8}
9
Philippe
30 Apr 2016
1import { DatePipe } from '@angular/common'
2...
3constructor(public datepipe: DatePipe){}
4...
5myFunction(){
6 this.date=new Date();
7 let latest_date =this.datepipe.transform(this.date, 'yyyy-MM-dd');
8}
similar questions