sass-references/angular-material/material/core/datetime/native-date-formats.ts

25 lines
750 B
TypeScript

/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {MatDateFormats} from './date-formats';
export const MAT_NATIVE_DATE_FORMATS: MatDateFormats = {
parse: {
dateInput: null,
timeInput: null,
},
display: {
dateInput: {year: 'numeric', month: 'numeric', day: 'numeric'},
timeInput: {hour: 'numeric', minute: 'numeric'},
monthYearLabel: {year: 'numeric', month: 'short'},
dateA11yLabel: {year: 'numeric', month: 'long', day: 'numeric'},
monthYearA11yLabel: {year: 'numeric', month: 'long'},
timeOptionLabel: {hour: 'numeric', minute: 'numeric'},
},
};