Class ISO8601DateFormatMethod

All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel, org.alfresco.processor.ProcessorExtension, TemplateProcessorExtension

public class ISO8601DateFormatMethod extends BaseTemplateProcessorExtension implements freemarker.template.TemplateMethodModelEx
Author:
David Caruana, Kevin Roast Custom FreeMarker Template language method.

Render Date to ISO8601 format.
Or parse ISO6801 format string date to a Date object.

Usage: xmldate(Date date) xmldate(String date)

  • Constructor Details

    • ISO8601DateFormatMethod

      public ISO8601DateFormatMethod()
  • Method Details

    • exec

      public Object exec(List args) throws freemarker.template.TemplateModelException
      Specified by:
      exec in interface freemarker.template.TemplateMethodModel
      Specified by:
      exec in interface freemarker.template.TemplateMethodModelEx
      Throws:
      freemarker.template.TemplateModelException
      See Also:
      • TemplateMethodModel.exec(java.util.List)