将DateFormat myFormat = new SimpleDateFormat("yyyy.mm.dd");改写成
DateFormat myFormat = new SimpleDateFormat("yyyy.MM.dd");就可以了