Date To Iostring Code Example

Snippet 1
  Format formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String s = formatter.format(date);