How to get current date and time in JavaScript API?


I found at documentations method setDate that can set up date at device in Date format.
But i didnt find method getDate, that can return current date on device.

Are you can help me with it for resolve solution?

Example what i want to use:

function SetUpNewDate(newDate) {
 // let currentDateOnDevice = * need method to get it *

 if (currentDateOnDevice !== newDate) {
 } else {
  // do nothing because they are same

1 comment

  • 0

    The standard Javascript Date functions will work, with all the baggage they inherited from Java.

    new Date()

    Friendly reminder, the community forum is intended for user-to-user discussion.  It is not regularly monitored. For troubleshooting problems and to ensure a timely answer from a BrightSign representative, please submit a support ticket

Please sign in to leave a comment.