private String convertToIsoDateTime(String humanReadableDateTime) throws ParseException {
  DateFormat dfInitial=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  Date initialDateTime=dfInitial.parse(humanReadableDateTime);
  DateFormat df=new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.S'Z'");
  return df.format(initialDateTime);
}

private String convertToIsoDateTime ( String humanReadableDateTime ) throws ParseException { DateFormat dfInitial = new SimpleDateFormat ( "yyyy-MM-dd HH:mm:ss" ) ; Date initialDateTime = dfInitial . parse ( humanReadableDateTime ) ; DateFormat df = new SimpleDateFormat ( "yyyy-MM-dd'T'HH:mm:ss.S'Z'" ) ; return df . format ( initialDateTime ) ; }
convert string of datetime of format " yyyy - mm - dd hh : mm : ss " into iso 8601 format " yyyy - mm - dd ' t ' hh : mm : ss . s ' z ' "
