1、第一步创建一个测试工程
2、第二步创建测试类
3、创建字符串转换成日期的方法:主要是:SimpleDateFormate(pattren).parse(date)
4、第四步创建测试类:
5、第五步运行结果: