String time= Dateformat.format(Date date);可以将时间转化成字符串
    DateFormate formate = new SimpleDateFormat(“yyyy—mm—dd”);构造方法格式化
    formate.parse(String source):检验给定的字符串是否符合上面格式
    y:Year
    Y:Week year
    M&m:Month in year
    D:Day in year
    d:Day in month
    image.png
    image.png
    image.png