How to pass a DateTime from NodeJS Sequelize to MSSQL

后端 未结 3 1206
走了就别回头了
走了就别回头了 2021-02-07 09:32

I have a NodeJS project, and I am trying to pass an \'UpdateDate\' field using Sequelize. I am receiving the error \'Conversion failed when converting date and/or time from char

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-07 09:34

    You can use this variable:

    const timestamps = new Date() + 3600 * 1000 * 7;
    

提交回复
热议问题