I'm trying to get the System date in a velocity template, but ModifiedDateTime="$date" results in ModifiedDateTime="$date" instead of ModifiedDateTime="Jan 11, 2011 9:54:50 AM"
All of my other variables and calls work as supposed to, but this is my first Velocity template and everything I can find points at $date.
Velocity templates were deprecated in Liferay Portal 7.0 and are now removed in favor of FreeMarker templates in Liferay DXP 7.2.
Velocity is a Java-based templating engine. It's an open source web framework designed to be used as a view component in the MVC architecture, and it provides an alternative to some existing technologies such as JSP. Velocity can be used to generate XML files, SQL, PostScript and most other text-based formats.
I think you need to provide $date
variable like here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With