首页 > 代码库 > 123

123

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);
}
}

123