DATE_PIPE_DEFAULT_OPTIONS
constant
DI token that allows to provide default configuration for the DatePipe
instances in an
application. The value is an object which can include the following fields:
dateFormat
: configures the default date format. If not provided, theDatePipe
will use the 'mediumDate' as a value.timezone
: configures the default timezone. If not provided, theDatePipe
will use the end-user's local system timezone.
API
Usage Notes
const DATE_PIPE_DEFAULT_OPTIONS: InjectionToken<DatePipeConfig>;
Jump to details