Answers for "angular php long date to yyyy-mm-dd"

1

angular get current date yyyy-mm-dd

import { DatePipe } from '@angular/common';

@Component({
    templateUrl: './name.component.html',
    styleUrls: ['./name.component.scss'],
    providers: [DatePipe]
})

myDate = new Date();
constructor(private datePipe: DatePipe){
    this.myDate = this.datePipe.transform(this.myDate, 'yyyy-MM-dd');
}
Posted by: Guest on September-13-2020
4

show timestamp as yyyy mm dd html angular

{{date  | date:'yyyy-MM-dd'}}
Posted by: Guest on February-17-2020

Code answers related to "angular php long date to yyyy-mm-dd"

Browse Popular Code Answers by Language