Good evening everyone!
My form sends a String list in this format:
dd/ MM / yyyy
Wanted converts this string list in date to the format :
yyyy - MM - dd
How can I do this in Java ?
Good evening everyone!
My form sends a String list in this format:
dd/ MM / yyyy
Wanted converts this string list in date to the format :
yyyy - MM - dd
How can I do this in Java ?
File file = new File("/Users/eclipse-workspace"); // Absolute path
long lastModified = file.lastModified(); // File into lastModifiedDate lastModifiedDate = new Date(lastModified); //
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); // Display format
String formattedDate = dateFormat.format(lastModifiedDate); //
System.out.print("Last Modified Date :"+ formattedDate); //