Table Column Type Date

Edit on GitHub

This document explains the Table Column Type Date in the Components library.


Table Column Date is an Angular Component that renders formatted date using Angular built-in Date Pipe.

Check out an example usage of the Table Column Date in the @spryker/table config:

        columns: [
                id: 'columnId',
                title: 'Column Title',
                type: 'date',
                typeOptions: {
                    date: '${displayValue}',
                    format: 'mediumDate',

Component registration

Register the component:

declare module '@spryker/table' {
    interface TableColumnTypeRegistry {
        date: TableColumnDateConfig;

    imports: [
            date: TableColumnDateComponent,
export class RootModule {}


Below you can find interfaces for the Table Column Date:

interface TableColumnDateConfig {
    date?: Date;
    format?: string; // 'shortDate' - by default

To learn more about the pre-defined format options, see official Angular documentation.