code: public static Date getCurrentDateTime() throws ParseException {
          Calendar currentDate = Calendar.getInstance();
          SimpleDateFormat formatter = new SimpleDateFormat(DATE_yyyyMMddTHHmmssSSSZ);
          String dateNow = formatter.format(currentDate.getTime());
          return getDateFromString(dateNow);
      }
docs: Method to get the current date time Calendar instance
  
  @return the Date instance
  @throws ParseException