# QDateEdit's .date() returns a QtCore.QDate object
date = QtCore.QDate(2013, 1, 1)
# Get the string in whatever format you want
date.toString("MM/dd/yyyy")
Out[10]: u'01/01/2013'
# Get the date as a datetime object
date.toPython()
Out[11]: datetime.date(2013, 1, 1)
我很难确定你所说的“真正的约会”是什么意思,但我想你可能想要什么:
我从PySide wiki那里得到了这些
相关问题 更多 >
编程相关推荐