@Test
    public void testFormat(){
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-mm-dd hh:mm:ss");
        Date date = new Date();
        String dataStr = sdf.format(date);
        System.out.println(dataStr);
    }

 

posted on 2017-06-01 20:15  两枝梅  阅读(687)  评论(0编辑  收藏  举报