摘要:
JAVA格式化时间日期
public class Test{
public static void main(String []args){
Date d = new Date();
String s;
/** Date类的格式: Sat Apr 16 13:17:29 CST 2006 */
System.out.println(d);
System.out.println("******************************************");
/** getDateInstance() */
/** 输出格式: 2006-4-16 */
s = DateFormat.getDateInstance().format(d);
System.out.println(s);
/** 阅读全文
posted @ 2013-10-12 22:57
ONLY LOVE PROGRAME
阅读(144)
评论(0)
推荐(0)