Software Archive
Read-only legacy content
17061 Discussions

current date and time of device

alessio_m_1
Beginner
474 Views

Hi!!!!!

I need a object or method to get the time and the date of the native device ?????

Then I need a object and method to set the screensaver of the native device???

0 Kudos
1 Reply
PaulF_IntelCorp
Employee
474 Views

See this for standard JavaScript date/time function: http://stackoverflow.com/questions/3830244/get-current-date-time-in-seconds -- your date/time is going to come from the native device, since the webview you're running in is on the native device.

Setting the screensaver would require a Cordova plugin, which we do not yet support. We will in a future edition of the product.

0 Kudos
Reply