getDate node>6.0,support es6 getDates.getDate(num,format); num = '1day' || '1month' || '1year' || '-2day' || ..... foramt = '-' || '/' || '' || '_' || ...... example: getDates.getDate('1day'); 2018-04-14 getDates.getDate('1day','/'); 2018/04/14