//~OPTIONS
{
  clientRendering:  true,
  lockTemplate:     false,
  autoUpdate:       true,
}

//~ARGUMENTS
{
  value: undefined,
  format: "Y-m-d H:i:s",
}

//~TEMPLATE
%{{
  let content  = "";
  let datetime = new Date(args.value);
  if (!isNaN(datetime.getTime()))
    content = fcf.dateFormat(datetime, args.format);
}}%
@{{content}}@
