标签:
public class Test {
public static void main(String[] args) throws ParseException {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Date date = sdf.parse("2012-02-02");
System.out.println(date);
}
}
标签:
原文地址:http://www.cnblogs.com/winner-0715/p/5827415.html