DateFormant提供了日期格式化显示。
获取日期
DateFormant df=DateFormant.getDateInstance();
获取日期时间
DateFormant df=DateFormant.getDateTimeInstance();