What I am trying to do is changing "yyyy-mm-dd HH:mm:ss" string to date value.
Here is the current code
var c = new Date('2019-01-19 23:59:59'.replace(/\s+/g, 'T'))
It returns
- chrome :
Sat Jan 19 2019 23:59:59 GMT+0900 (KST)
- safari :
Sun Jan 20 2019 08:59:59 GMT+0900 (KST)
- ie11 :
Sat Jan 19 2019 23:59:59 GMT+0900 (KST)
What should I do to make it returns all same date?
Thanks.