Pokaż znacznik czasu jak róg mm dd html angular
{{date | date:'yyyy-MM-dd'}}
Innocent Ibis
{{date | date:'yyyy-MM-dd'}}
import { DatePipe } from '@angular/common'
...
constructor(public datepipe: DatePipe){}
...
myFunction(){
this.date=new Date();
let latest_date =this.datepipe.transform(this.date, 'yyyy-MM-dd');
}
import { DatePipe } from '@angular/common'
...
providers: [DatePipe]