I have a QDateEdit
object (field on a display window). When I use the only real option (according to the PySide site) QDateEdit.date()
I get "2000, 1, 1" instead of "1/1/2000" and the documentation is completely useless for telling what to do with this data to use it as a real date. "2000, 1, 1" isn't a real date.
How to make this a date I can actually use and why I can't use any of the attributes described on the PySide site under QDate
, QDateEdit
, or QDateTimeEdit
?
QDateEdit.date().toString("dd/MM/yyyy")
might help. But before that like Mark asked why isn't it real date?