为什么date控件赋值后显示少一天
请问下大家,为什么我为下面控件赋值:
<input data-controlType='fishDate' style='font-size:smaller' type='date' >
赋值代码:
document.getElementById("fishDate").valueAsDate = Tools.ConvertDate(headData[d]);
其中Tools.ConvertDate(headData[d])方法返回的结果是 Tue Apr 14 2020 00:00:00 GMT+0800 (中国标准时间),
但界面上显示的却是2020/04/13,这不是少了一天吗?
请问下大家这个是什么原因,我要怎么修改呢?