JAVA中如何将字符串转换为日期型?
JAVA中如何将字符串转换为日期型?
Format命令如何用?
参考答案:String gs = "2002-01-01";
Date now = new Date(gs);
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
String s=s = df.format(now);
JAVA中如何将字符串转换为日期型?
Format命令如何用?
参考答案:String gs = "2002-01-01";
Date now = new Date(gs);
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
String s=s = df.format(now);