java calendar class format

Solutions on MaxInterview for java calendar class format by the best coders in the world

showing results for - "java calendar class format"
Victoria
28 Jan 2019
1SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
2Date date = new Date();
3System.out.println(dateFormat.format(date)); //2013/10/15 16:16:39