Closed lambdaq closed 6 months ago
@lambdaq you can use task.end and format with new Date() ;)
@lambdaq Changing the line to
const end_date = moment(task._end).format('MMM D');
will fix the issue.
Make sure you imported momentjs.
In fact, you could use date_utils
inside the library... but yeah, moment
makes more sense.
https://frappe.io/gantt
Custom HTML in popup
const end_date = task._end.format('MMM D');
task._end is a Date object, it does not have the format method