code: public static int day(EvaluationContext ctx, Object date) {
          return Conversions.toDateOrDateTime(date, ctx).get(ChronoField.DAY_OF_MONTH);
      }
docs: Returns only the day of the month of a date (1 to 31)