/*backtest start: 2017-10-01 end: 2018-01-01 period: 60 mode: 2 */ function dateFormat(date, format) { var o = { "M+": date.getMonth() + 1, //月份 "d+": date.getDate(), //日 "h+": date.getHours(), //小时