Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
QDate date = ui->dateEdit->date(); std::string strDate = date.toString().toStdString();
How can I store the date in XXXX-XX-XX format as string?
@Batyu
strDate = date.toString("yyyy-MM-dd").toStdString();
Other options and different formats are shown here: https://doc.qt.io/qt-5/qdate.html#toString-4