SimpleDateFomat格式化时间

SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日");   //MM必须为大写
System.out.println("时间为:"+sdf.format(new Date()));

posted @ 2013-12-05 17:40  搜索中...  阅读(168)  评论(0编辑  收藏  举报