DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault());
String currentDate = dateFormat.format(new Date());
expressionList.getExpressions()
.add(new TimestampValue(currentDate ));
Exception:
Caused by: java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]
at java.sql.Timestamp.valueOf(Timestamp.java:237)
at net.sf.jsqlparser.expression.TimestampValue.<init>(TimestampValue.java:34)
Exception: