We can get datetime using qmake _DATE_
which outputs
Sat Mar 12 17:29:00 2022
Can we format this output?
We can get datetime using qmake _DATE_
which outputs
Sat Mar 12 17:29:00 2022
Can we format this output?
By using QDateTime by passing the value of DATE (in fromString), you may be able to format the output the way you want, by using toString.
You can try things like this :
toString("ddd MMMM d hh:mm:ss yy"); //Sat Mar 12 17:29:00 2022