(--------)
In the preprocessors section under built in functions: try %date("yyyy.MM.dd") let us know if that does NOT work.
https://plantuml.com/preprocessing#291cabbe982ff775
Hello T., and all,
Here is a possible example:
@startgantt title Project on\n%date("yyyy-MM-dd") project start 2022-12-01 [Task] lasts 5 days [M happens the %gantt_date("yyyy-MM-dd")] happens at [Task]'s end @endgantt
Regards.
Hello !
Yes. Exactly.
But the relevance of this fonctionnality will be more obvious on a monthly or yearly scale.
@startgantt title Project on\n%date("yyyy-MM-dd") printscale monthly project start 2022-12-01 [Task] lasts 95 days [M happens the %gantt_date("yyyy-MM-dd")] happens at [Task]'s end @endgantt
To get :
While we are at it, why not request also, generic getter (`get`):
Here is a proposal of use:
@startgantt title Proposal\nfor new Builtin functions\nfor gantt printscale monthly hide footbox project start 2022-12-01 [task1] lasts 10 week [task2] starts 20 days after [task1]'s end and lasts 1 week note bottom note for task2 **%gantt_date(task2, "yyyy-MM-dd")** task2 starts at **%gantt_start_date(task2, "yyyy-MM-dd")** task2 ends at **%gantt_end_date(task2, "yyyy-MM-dd")** more notes end note [M] happens at [task1]'s end caption Note for Milestone M happens the: **%gantt_date(M,"yyyy-MM-dd")** more txt... endcaption @endgantt
To debate...