public static Calendar createCalendar(final int year, final int month, final int day) {
    final Calendar dateTime = Calendar.getInstance();
    dateTime.clear();
    dateTime.set(Calendar.YEAR, year);
    dateTime.set(Calendar.MONTH, month);
    dateTime.set(Calendar.DAY_OF_MONTH, day);
    return dateTime;
  }
The DateTimeUtils class is a utility class for working with dates and times.
<p>

@see java.util.Calendar
@see java.text.DateFormat
@see java.util.Date
@since GemFire 8.0
geode-web-api/src/main/java/org/apache/geode/rest/internal/web/util/DateTimeUtils.java