Hi and welcome
If you made the GUI with Designer, it will be something like
// as real data variableQDate = ui->dateEdit->date();
QDate Mydate= ui->dateEdit->date()
// as stringStringQString dateString = dateMydate.toString();