📜  mat input datetime-local now - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:26.443000             🧑  作者: Mango

代码示例1
@Component({
    selector: 'app',
    template: ` {{date}}` 
})
export class AppComponent {
    date: string;
    constructor() {
        this.date = new Date().toISOString().slice(0, 16);
    }
}