
Because the month is zero based, it may confuse some users that '3' is in fact 'April'. This comment should clear that up. PR Close #37770
11 lines
259 B
TypeScript
11 lines
259 B
TypeScript
// #docregion
|
|
import { Component } from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'app-root',
|
|
templateUrl: './app.component.html'
|
|
})
|
|
export class AppComponent {
|
|
birthday = new Date(1988, 3, 15); // April 15, 1988 -- since month parameter is zero-based
|
|
}
|