YYMMDD转YYYY-MM-DD

date.replace(/(d{4})(d{2})(d{2})/g,'$1-$2-$3');
原文地址:https://www.cnblogs.com/Nyan-Workflow-FC/p/10570303.html