Data Transformer: Date-parse

Edit on GitHub

This document explains the Data Transformer Date-parse service in the Components Library.


Data Transformer Date-parse is an Angular Service that parses the string value as a Date ISO into the JS Date Object.

In the following example, the datasource transforms the date string into the parsed date object.

        type: 'inline',
        data: '2020-09-24T15:20:08+02:00',
        transform: {
            type: 'date-parse'

Service registration

Register the service:

declare module '@spryker/data-transformer' {
    interface DataTransformerRegistry {
        'date-parse': DateParseDataTransformerConfig;

    imports: [
            'date-parse': DateParseDataTransformerService,
export class RootModule {}


Below you can find interfaces for the Data Transformer Date-parse:

export interface DateParseDataTransformerConfig extends DataTransformerConfig {}