data ke string format java

 DateFormat dateFormat = new SimpleDateFormat("yyyy-mm-dd hh:mm:ss");  
 String strDate = dateFormat.format(date);  
Enchanting Echidna