Hello,
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) {
systemTime.setDate(newDate)
} else {
// do nothing because they are same
}
}