In addition to customized tools for date and time handling, dotCMS has many built-in velocity tools that can be called directly in a widget, container, template, etc., for use on any dotCMS page.
- Method Overview
getDate() | Returns a Date object representing the time at which this method was invoked. |
getCalendar() | Returns a Calendar object representing the time at which this method was invoked. |
format() | Returns a formatted string representing the specified date. |
toDate() | Returns a Date object representing the specified date. |
toCalendar() | Returns a Calendar object representing the specified date. |
getDate() | |||
java.util.Locale that represents the locale
to be used to create the date.
java.util.Date representing the time at which this
method was invoked in the specified locale. If no locale is specified,
the system's default locale is used.
|
getCalendar() | |||
java.util.Locale that represents the locale
to be used to create the calendar.
java.util.Calendar representing the time at which this
method was invoked in the specified locale. If no locale is specified,
the system's default locale is used.
|
format() | |||||
java.text.SimpleDateFormat . See also below.
java.util.Date or java.util.Calendar . It is
also possible to pass a string that represents a parsable date
according to java.text.DateFormat .
java.util.Locale that represents the locale
to format the date for.
null
if one or several input parameters are invalid. If no locale is specified,
the system's default locale is used instead.
This methods use the same formatting instructions as class
|
toDate() | ||
java.util.Date or java.util.Calendar . It is also possible to
pass a string that represents a parsable date according to
java.text.DateFormat .
java.util.Date representing the converted date
or |
toCalendar() | ||
java.util.Date or java.util.Calendar . It is also possible to
pass a string that represents a parsable date according to
java.text.DateFormat .
java.util.Calendar representing the converted date
or |