vue时间转换


  picker
     v-model="queryParam.gmtCreate"
     show-time
     type="date"
     placeholder="请选择时间"
     style="width: 100%"
  />
  //  获取当前时间
       console.log(this.queryParam.gmtCreate);
// 转换成日期 let time = this.queryParam.gmtCreate.format('YYYY-MM-DD HH:mm:ss')
// 转换成功时间戳 let date = Date.parse(time)


(用的UI是antdvue)

 时间戳转换工具:https://tool.lu/timestamp/

vue