DateFormat format2= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date date = format2.parse("2013-11-30 00:00:00.0"); SimpleDateFormat df=new SimpleDateFormat("yyyy-MM-dd"); String time=df.format(date);