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
-
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.
- Determine the date format that you want to modify.
- Go to the
<store-temp>/extensions/override-static-assets/date-formats/
directory.
- 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",
}
}
- Run the
yarn start-app
command.