指定日期格式

摘要:指定日期格式

 //指定日期格式
        SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
        Date current = new Date();        
        System.out.println(sdFormat.format(current));