plugin/src/java/org/pm4knime/node/conversion/table2log/ToXLogConverter.java
public Date convertString2Date(DataCell dataCell) throws ParseException {
		if(dataCell.getType().equals(LocalDateTimeCellFactory.TYPE)) {
			// it is one local time cell
			LocalDateTimeCell dataValue = (LocalDateTimeCell) dataCell;
			return Date
		      .from(dataValue.getLocalDateTime().atZone(ZoneId.systemDefault())
		      .toInstant());
		}else if(dataCell.getType().equals(ZonedDateTimeCellFactory.TYPE)) {
			ZonedDateTimeCell dataValue = (ZonedDateTimeCell) dataCell;
			return Date.from(dataValue.getZonedDateTime().toInstant());
		}
		return null;
	}
// here we assume the dataCell is in DataTime format in KNIME
here we assume the dataCell is in DataTime format in KNIME
here we assume the dataCell is in DataTime format in KNIME
public Date convertString2Date(DataCell dataCell) throws ParseException {
		if(dataCell.getType().equals(LocalDateTimeCellFactory.TYPE)) {
			LocalDateTimeCell dataValue = (LocalDateTimeCell) dataCell;
			return Date
		      .from(dataValue.getLocalDateTime().atZone(ZoneId.systemDefault())
		      .toInstant());
		}else if(dataCell.getType().equals(ZonedDateTimeCellFactory.TYPE)) {
			ZonedDateTimeCell dataValue = (ZonedDateTimeCell) dataCell;
			return Date.from(dataValue.getZonedDateTime().toInstant());
		}
		return null;
	}
public Date convertString2Date ( DataCell dataCell ) throws ParseException { if ( dataCell . getType ( ) . equals ( LocalDateTimeCellFactory . TYPE ) ) { LocalDateTimeCell dataValue = ( LocalDateTimeCell ) dataCell ; return Date . from ( dataValue . getLocalDateTime ( ) . atZone ( ZoneId . systemDefault ( ) ) . toInstant ( ) ) ; } else if ( dataCell . getType ( ) . equals ( ZonedDateTimeCellFactory . TYPE ) ) { ZonedDateTimeCell dataValue = ( ZonedDateTimeCell ) dataCell ; return Date . from ( dataValue . getZonedDateTime ( ) . toInstant ( ) ) ; } return null ; }
here we assume the dataCell is in DataTime format in KNIME
here we assume the dataCell is in DataTime format in KNIME
// it is one local time cell