GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Tutorials
  • Playground
  • Reference
  • code
  • DatePipe
  • DatePipeConfig

This view

  • Original page
  • New address

GeezerVison is showing next.angular.dev — DATE_PIPE_DEFAULT_OPTIONS • Angular

API

    
      const DATE_PIPE_DEFAULT_OPTIONS: InjectionToken<DatePipeConfig>;
    
    

Usage Notes

Various date pipe default values can be overwritten by providing this token with the value that has this interface.

For example:

Override the default date format by providing a value using the token:

providers: [
  {provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: {dateFormat: 'shortDate'}}
]

Override the default timezone by providing a value using the token:

providers: [
  {provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: {timezone: '-1200'}}
]
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.