I want to store value from QDateEdit to String. I'have used following code:
QString str = ui->dateeditobject->date().toString("dd/mm/yyyy")
But the problem is, that the month value is not being stored as you can see in the picture .
Where am I going wrong?
Month is MM (uppercase), otherwise it is minutes
ui->dateeditobject->date().toString("dd/MM/yyyy")
Documentation here .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.