JS New Date ("2016-07-01 08:00:00") format shows Nan in IE kernel browser
No more nonsense, var dd = new Date ("2016-07-01 08:00:00"), this format is not problematic in browsers such as Ff,chrome,opera,safari, while in IE Kernel browser (cheetah, 360 compatibility mode), the problem of invalid Nan occurs,
Check out the original is the format of the problem, note the format of the date, if the above code is modified to var dd = new Date ("2016/07/01 08:00:00"), so in the IE kernel browser there is no problem in the FF , Chrome,opear,safari and other browsers will not have problems, is really a worried problem ah, broken ie, let him go to hell!
So in the use of a point to note that the final complete format is
var dd = new Date ("2016-07-01 08:10:00"). Replace (/-/g, "/"); This ensures that no browser is in trouble.
JS New Date ("2016-07-01 08:00:00") format shows Nan in IE kernel browser