replacing date like '2018-01-01' by variable string on SQLITE query QML
Unsolved
3rd Party Software
-
Hello,
I have JS query and QML calling the function and all is working fine is I write the date manually like here:
JS.dbaddpart(inConversationWith,'2018-01-01')
but when I'm trying to replace the date by variable like here:
JS.dbaddpart(inConversationWith,dateaircraftpartinstallation)
the query return nothing without error.
the value of dateaircraftpartinstallation is from:
Calendar { id:dateinstallationcalendar height:350 width: 350 anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter focus: true visible:false onClicked: {dateaircraftpartinstallation =Qt.formatDate(dateinstallationcalendar.selectedDate,'yyyy-MM-dd') } style: TouchCalendarStyle {} }
Do you know how can I solve this problem?
Thank you very much
Philippe