标签:
Date date=new Date(); DateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:MM:SS"); DateFormat sdf1=new SimpleDateFormat("YYYY-MM-dd HH:MM:SS"); out.println(sdf.format(date)); out.println(sdf1.format(date));
结果:
标签:
原文地址:http://www.cnblogs.com/ziyueer/p/4189625.html