字符串转换为日期及日期转换成字符串(SimpleDateFormat)SimpleDateFormatformatnewSimpleDateFormat(yyy
字符串转换为日期及日期转换成字符串(SimpleDateFormat)
SimpleDateFormat format = new SimpleDateFormat( "yyyyMMdd ");
format.parse(String str)把字符串转换为日期
format.format(Date date)把日期解析为字符串
