SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Date date = new Date(); try { date = sdf.parse(sdf.format(date)); } catch (ParseException e) { e.printStackTrace(); }
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Date date = new Date(); try { date = sdf.parse(sdf.format(date)); } catch (ParseException e) { e.printStackTrace(); }