Codeshare List of user-contributed code snippets for dotCMS Java CMS.

Tagged: "date formatting"

Comparing Dates in Velocity

Author: Dotcms | Created: May 03, 2012

This code sample will help you learn different ways to obtain todays date and format it. It also shows how you can compare two dates, or one content date...

Localized Date Formatting

Author: Angelo Tata | Created: Mar 25, 2012

The date Viewtool provided by dotCMS allows locale-specific date formatting, but a valid Locale instance needs to be passed to its format method.