Get date device phonegap time

0

How do I get the date device time using the phonegap?

    
asked by anonymous 03.04.2014 / 05:02

1 answer

2

It seems to me that a possible solution would be as follows:

var date = new Date();
var hour = date.getHours();
var min = date.getMinutes();
var seconds = date.getSeconds();
    
03.04.2014 / 05:26