Date.parse() method not work in IOS
Maybe it’s a big bug that I had experienced recently, when I use JavaScript method Date.parse('2016-10-24 18:36')
, two different outputs in Android and IOS. In Android it output the right timestamp which i need, but in IOS, it can not get the timestamp.
How To Fixed it
Just use the ISO 8601 format, it works well, for example:
var a = Date.parse('2016-11-25T16:11:00Z');
console.log(a);
This code can run in both Android and IOS.