Our flexible Kanban board for managing tasks with drag drop


Post by rodel.ocfemia »

Hi,
How can I format the date to MM/DD/YYYY after inline editing a date field? By default the value is set to long date format including the timezone.

Thanks


Post by tasnim »

Hi,
You can use this https://bryntum.com/docs/taskboard/api/Core/helper/DateHelper#function-format-static to achieve that

Example :

DateHelper.format(new Date('2022-02-02'), 'MM/DD/YYYY')

Post by rodel.ocfemia »

Hi,
This code gives me 'DataHelper is not defined' error.

listeners: {
        simpleTaskEditComplete({ taskRecord, field }) {
           DateHelper.format(new Date(taskRecord.startDate), 'MM/DD/YYYY')
        }
     }

Post by tasnim »

You need to import DateHelper


Post Reply