Uncategorized

Formating Date at java

String pattern = “yyyy-MM-dd HH:mm:ss”;
SimpleDateFormat format = new SimpleDateFormat(pattern);
// formatting
String current_date= format.format(new Date());

Advertisements