code: public static String format_date(EvaluationContext ctx, Object text) {
          ZonedDateTime _dt = Conversions.toDateTime(text, ctx).withZoneSameInstant(ctx.getTimezone());
          return ctx.getDateFormatter(true).format(_dt);
      }
docs: Formats a date according to the default org format