I have problems with getting new Date();
to work properly in a mobile app (Cordova/Phonegap). Some suggested that iPhones and Androids requires specific format other then the one used by default by Javascript, like this one: mm/dd/yyyy hh:mm:ss.
Thing is, my app needs to receive from the client its current time (now) and then send it to the server. How can I make new Date();
so it comes out with mm/dd/yyyy hh:mm:ss format? As I see Date() can't accept a format as argument.