Answers for "yyyy-mm-ddthh:mm to dd/mm/yyyy angularjs"

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
2

javascript format date yyyy-mm-dd

// yyyy-mm-dd
new Date().toISOString().slice(0, 10)
Posted by: Guest on March-29-2021

Code answers related to "yyyy-mm-ddthh:mm to dd/mm/yyyy angularjs"

Code answers related to "Javascript"

Browse Popular Code Answers by Language