用SimpleDateFormat来转换 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date date = sdf.parse("2008-08-08 12:10:12");
具体请参考JDK API文档
用SimpleDateFormat来转换 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date date = sdf.parse("2008-08-08 12:10:12");
具体请参考JDK API文档