DateFormat类不懂
String today=null;
Date date=new Date(); //输出date为什么是null呢,
DateFormat format=new SimpleDateFormat("yyyy-MM-dd"); //看API没看懂,DateFormat是个什么类,起的什么作用,为什么要用它, 还有为什么要用new SimpleDateFormat("yyyy-MM-dd"); 初始化呢
today = format.format(date); //还有这个