I try to get date and time from string with milliseconds:
SimpleDateFormat formatDate = new SimpleDateFormat("dd.MM.yyyy HH:mm");
Date modifDate = new Date(Long.parseLong(ftpClient.getModificationTime(file_directory)));
System.out.println(formatDate.format(modifDate));
But I have an exception in second line: java.lang.NumberFormatException: For input string: "213 20140601042221
. Where is my mistake and how can I solve it?
Thank you very much!