SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
System.out.println(sdf2.format(sdf.parse("1990-04-15")));
输出什么.
别运行,自己输.
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
System.out.println(sdf2.format(sdf.parse("1990-04-15")));
输出什么.
别运行,自己输.