show timestamp as yyyy mm dd html angular

Solutions on MaxInterview for show timestamp as yyyy mm dd html angular by the best coders in the world

showing results for - "show timestamp as yyyy mm dd html angular"
Giovanni
26 Feb 2020
1{{date  | date:'yyyy-MM-dd'}}
Cristian
08 Jan 2021
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}
Lucia
02 Apr 2019
1import { DatePipe } from '@angular/common'
2...
3providers: [DatePipe]
similar questions
queries leading to this page
show timestamp as yyyy mm dd html angular