String d="2019-01-12 23:25:03";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date showD= sdf.parse(d);//String to Date
String showD=sdf.format(showD);//Date to String
String d="2019-01-12 23:25:03";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date showD= sdf.parse(d);//String to Date
String showD=sdf.format(showD);//Date to String