I'm working on a Phonegap-based iOS app, which is already done for Android. The following lines are working fine for Android but not for iOS. Why?
var d = new Date(2015-12-31 00:00:00);
console.log(d.getDate() + '. ' + d.getMonth() + ' ' + d.getFullYear();
Result for Android:
31.11 2015
Result on iOS:
NaN. NaN NaN
Where is the difference coming from?