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

Tagged: "date formatting"

Localized Date Formatting

Author: Angelo Tata | Created: Mar 24, 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.

Comparing Dates in Velocity

Author: Dotcms | Created: May 02, 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...