I can get a date string from background, the format is 'Tue Sep 18 14:42:56 SGT 2018'
. I want to convert it to milliseconds in JavaScript.
I've already tried Date.parse('Tue Sep 18 14:42:56 SGT 2018')
, but it will return NaN
Anybody can help? Appreciated in advance.