2007年9月29日
一:字符串转换成时间及时间相减:1:) SimpleDateFormat formatter = new SimpleDateFormat ("yyyy.MM.dd");//假定像2002.07.04的是合法日期其他都非法。String str="2002.07.04";ParsePosition pos = new ParsePosition(0);Date dt=formatter.parse(str,pos);if(dt!=null){//是合法日期...
Tags: JAVA
Tags: JAVA