UNPKG

496 BTypeScriptView Raw
1/**
2 * An interface of the date model used by the datepicker.
3 *
4 * All datepicker APIs consume `NgbDateStruct`, but return `NgbDate`.
5 *
6 * See the [date format overview](#/components/datepicker/overview#date-model) for more details.
7 */
8export interface NgbDateStruct {
9 /**
10 * The year, for example 2016
11 */
12 year: number;
13 /**
14 * The month, for example 1=Jan ... 12=Dec
15 */
16 month: number;
17 /**
18 * The day of month, starting at 1
19 */
20 day: number;
21}