Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: zalbina on December 31, 2012, 02:45:43 am
-
Hi,
It's very simple question: how can I get current date in Code Generation Template? I hope some macro exists, but I did not find it :(.
Thanks.
-
Try %eaDateTime%
The current time with format: DD-MMM-YYYY HH:MM:SS AM/PM.
Works in v10. Either didn't exist or was undocumented in previous releases. Use the %LEFT function macro to strip just the date off the string.