举例说明了 /**
* 转化当前时间为字符串
* @return 格式为 2003-06-10
*/
public static String getCurrentDate(){
Date d = new Date();
SimpleDateFormat df=new SimpleDateFormat ("yyyy-MM-dd");
return df.format(d);
}
* 转化当前时间为字符串
* @return 格式为 2003-06-10
*/
public static String getCurrentDate(){
Date d = new Date();
SimpleDateFormat df=new SimpleDateFormat ("yyyy-MM-dd");
return df.format(d);
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货