i need to convert date string "28/01/2018" (dd/mm/yyyy) into a Date() in qml.
i'm tried this:
var dateBoard = masterPAGEMAIN.getData();
var locale = Qt.locale()
var someDateTest = new Date()
someDateTest = Date.fromLocaleString(locale, dateBoard, "dd/MM/yyyy");
var test = someDateTest.getDate().toString();
Also saw this: conversione from string , but my problem is that i continue to receive a "NaN" or "Invalid Date", how to can i get Date() from string in qml ?
Thanks