I don't know python at all:
But i guess (no guarantee) the code should look something like:
//assuming that date_applfrm is the QDateEdit object
b = self.date_applfrm.dateTime().toString("dd MMM YYYY hh:mm")
//assuming that date_applfrm is the QDateEdit object
b = self.date_applfrm.dateTime().toString("dd MMM YYYY hh:mm")
To copy to clipboard, switch view to plain text mode
I'm telling this to try to help you if my python hack doesn't work (since i don't know python)
In C++ (i assume i python code too) you need to access the dateTime() to return a QDateTime object which has a toString method you need to call with a string parameter (of the format you want see the link to documentation in my previous post)
This is C++ code:
QString time = dateEditObject
->dateTime
().
toString("dd MMM YYYY hh:mm");
QString time = dateEditObject->dateTime().toString("dd MMM YYYY hh:mm");
To copy to clipboard, switch view to plain text mode
Bookmarks