I have tried to get the date from QDateEdit so that I can save it to a database, but when I execute the code in PySide6 it gives me an error:
value = self.ui.dateEdit.date()
var_name = str(value.toPyDate())
Error:
PySide6.QtCore.QDate object has no attribute 'toPyDate'
If there is any other method apart from this to get a Python date from QDateEdit and save it to a database I will appreciate it.