代码地址:https://gitee.com/jklasdftv/codes/de5xmwck9ljrup2s40o3h58
测试例子:
2018.12.25
2017.11.30
2016.10.31
2012.2.28
2015.2.28
2000.2.28
1900.2.28
2012.2.29
1999.12.31
1998.1.1