Class TemplateDateFormat

java.lang.Object
freemarker.core.TemplateValueFormat
freemarker.core.TemplateDateFormat

public abstract class TemplateDateFormat extends TemplateValueFormat
Represents a date/time/dateTime format; used in templates for formatting and parsing with that format. This is similar to Java's DateFormat, but made to fit the requirements of FreeMarker. Also, it makes easier to define formats that can't be represented with Java's existing DateFormat implementations.

Implementations need not be thread-safe if the TemplateNumberFormatFactory doesn't recycle them among different Environment-s. As far as FreeMarker's concerned, instances are bound to a single Environment, and Environment-s are thread-local objects.

Since:
2.3.24