I want to format a date, using
DateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
return dateFormat.format(LocalDateTime.now().plusMinutes(10));
but I have the error:
java.lang.IllegalArgumentException: Cannot format given Object as a Date