@ng-bootstrap/ng-bootstrap
Version:
Angular powered Bootstrap
22 lines (21 loc) • 496 B
TypeScript
/**
* An interface of the date model used by the datepicker.
*
* All datepicker APIs consume `NgbDateStruct`, but return `NgbDate`.
*
* See the [date format overview](#/components/datepicker/overview#date-model) for more details.
*/
export interface NgbDateStruct {
/**
* The year, for example 2016
*/
year: number;
/**
* The month, for example 1=Jan ... 12=Dec
*/
month: number;
/**
* The day of month, starting at 1
*/
day: number;
}