@Test public void demo(){ SimpleDateFormat format=new SimpleDateFormat("yyyy-mm-dd hh-mm-ss"); String currentDate=format.format(new Date()); System.out.println(currentDate); }
@Test public void demo(){ SimpleDateFormat format=new SimpleDateFormat("yyyy-mm-dd hh-mm-ss"); String currentDate=format.format(new Date()); System.out.println(currentDate); }