How do I get the year only out of a qdate query? A code snippet would be very helpful.
the reference to http://doc.qt.io/qt-5/qdatetime.html#toTime_t wasn't particularly helpful.
Thanks for any help
How do I get the year only out of a qdate query? A code snippet would be very helpful.
the reference to http://doc.qt.io/qt-5/qdatetime.html#toTime_t wasn't particularly helpful.
Thanks for any help
One would think that QDateTime::date() followed by QDate::year() could be easily found by reading further into the documentation at the link you posted.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks