Inline editing date format
Posted: Mon Oct 10, 2022 10:43 am
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
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
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')
Hi,
This code gives me 'DataHelper is not defined' error.
listeners: {
simpleTaskEditComplete({ taskRecord, field }) {
DateHelper.format(new Date(taskRecord.startDate), 'MM/DD/YYYY')
}
}
You need to import DateHelper