I'm trying to show the current date and time using this:
var currentDate = new Date();
and then the code below to update my label, which did not work:
var controller = this;
var refs = controller.getReferences();
refs.dateLabelId.text.setValue = currentDate;
dateLabelId is the reference of my label
PROBLEM SOLVED
refs.dateLabelId.label.setText(currentDate)