Adding or updating custom date formats

You can add or update the existing application-provided date format as needed for your business. For more information, see DatePipe of Angular documentation.

Procedure

  1. Go to the <store-temp>\packages\libs\core\src\lib\config\ directory. In the date-format.config.ts file, you can find the application-provided date format.
  2. Determine the date format that you want to modify.
  3. Go to the <store-temp>/extensions/override-static-assets/date-formats/ directory.
  4. In the date-format-extension.json file, add or update the date format.
    The following sample code illustrates how to modify the date format of isfMediumDate for the en locale.
    {
    "en": {
            "isfMediumDate": "dd MMM yyyy",
        }
    }
  5. Run the yarn start-app command.