用SimpleDateFormat来转换SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");Date date = sdf.parse("2008-08-08 12:10:12");