Data Transformer: Date-serialize

Edit on GitHub

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


Data Transformer Date-serialize is an Angular Service that serializes JS Date Object into a Date ISO string.

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

        type: 'inline',
        transform: {
            type: 'date-serialize'

Service registration

Register the service:

declare module '@spryker/data-transformer' {
    interface DataTransformerRegistry {
        'date-serialize': DateSerializeDataTransformerConfig;

    imports: [
            'date-serialize': DateSerializeDataTransformerService,
export class RootModule {}


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

export interface DateSerializeDataTransformerConfig extends DataTransformerConfig {}