我想在使用下面的代码后,在角度甘特图表中以月和日格式显示工具提示中的日期(例如,Sep 01)。
我以侮辱格式获取日期,即“MMM DD,HH:mm”请帮我解决此问题
<gantt-tooltips enabled="true" date-format = "MMM DD"><gantt-tooltips/>
答案 0 :(得分:1)
对于来这里寻找答案的人,https://www.angular-gantt.com/plugins/tooltips/:
对此进行了解释日期格式:
工具提示中显示的日期格式。
见momentJS#format()
默认值:MMM DD,HH:mm
您可以像以下一样使用它:
<gantt-tooltips enabled="true" date-format = "'MMM DD'"><gantt-tooltips/>