DateFormant提供了日期格式化顯示。
獲取日期
DateFormant df=DateFormant.getDateInstance();
獲取日期時間
DateFormant df=DateFormant.getDateTimeInstance();