public static Date of(int year, int month, int dayOfMonth) {
    return new Date(LocalDate.of(year, month, dayOfMonth));
  }
Obtains an instance of Date from a text string such as 2021-02-22T09:39:27.
Other supported formats are "2021-02-22T09:39:27Z", "2021-02-22 09:39:27",
"2021-02-22T09:39:27+00:00", "2021-02-22". Any time information is simply
dropped.

@param text the text to parse, not null
@return The {@code Date} objects parsed from the text
@throws IllegalArgumentException if the text cannot be parsed into a
          {@code Date}
@throws NullPointerException if {@code text} is null
common/src/java/org/apache/hadoop/hive/common/type/Date.java