Why converting new.Date() .toISOString() changes the time?

前端 未结 3 1831
-上瘾入骨i
-上瘾入骨i 2021-02-19 00:04

I\'m inserting a date in a database in two different format.

this is inserting as Datetime

    var mydate;
    mydate = new Date();
            


        
3条回答
  •  渐次进展
    2021-02-19 00:26

    Just if someone else face the same issue and visit this question.

    There is a solution here: https://stackoverflow.com/a/28149561

提交回复
热议问题