如何使用甘特-工具提示属性在角表格中显示用户输入格式的日期

How to display date in user entered format in angular table using gantt-tooltip attribute

本文关键字:用户 显示 输入 格式 日期 表格 何使用 工具提示 属性      更新时间:2023-09-26

我想在工具提示中以月和日的格式显示日期(例如:在使用下面的代码后,在角甘特表中。

我正在获取默认格式的日期,即"MMM DD, HH:mm"请帮我解决这个问题

<gantt-tooltips enabled="true" date-format = "MMM DD"><gantt-tooltips/>

对于任何来这里寻找答案的人,都可以在https://www.angular-gantt.com/plugins/tooltips/:

中进行解释。

日期格式:

工具提示中显示日期的格式。

看到momentJS #格式()

default: MMM DD, HH:mm

你可以这样使用:

<gantt-tooltips enabled="true" date-format = "'MMM DD'"><gantt-tooltips/>