At the entrance I have a variable QString, which contains the date and time in the form:
18.11.2016 13:00:58 I need to reformat this date and time in this format:
пт нояб. 18 15:58:06 2016 I try to do this, but as a result, the date variable is empty:
qDebug() << date; QDateTime tmp; tmp.fromString(date,"dd.MM.yyyy HH:mm:ss"); date = tmp.toString(); qDebug() << date; What am I doing wrong?