Invalid date format conversion in Qt

    QDateTime valid = QDateTime::fromString("2018-Apr-5", "yyyy-MMM-d");

use qDebug () output valid to directly say that it is invalid, what is this all about? It is not valid to use an example in the official document:


  QString string = "Tuesday, 23 April 12 22:51:41";
  QString format = "dddd, d MMMM yy hh:mm:ss";
  QDateTime valid = QDateTime::fromString(string, format);

the above paragraph is an example given in the official document. It doesn"t work as long as you use MMM or MMMM .

Mar.04,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36b56-2c01d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36b56-2c01d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?