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

Tagged: "date formatting"

Localized Date Formatting

Author: Angelo Tata |

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 |

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...