Skip to main content
8 events
when toggle format what by license comment
Oct 29, 2021 at 7:31 history edited Taras CC BY-SA 4.0
added 104 characters in body
S May 19, 2020 at 11:10 history suggested thymaro CC BY-SA 4.0
updated answer for later software version
May 19, 2020 at 8:55 review Suggested edits
S May 19, 2020 at 11:10
Oct 2, 2016 at 11:21 vote accept Ilias Machairas
Sep 28, 2016 at 22:13 comment added Ilias Machairas The first time I run this procedure, the format of the date was d/M/yyyy. I have tried to run this with the format d/M/yyyy again and the outcome of some records was null as it above mentioned. In addition, I run this with the format dd/MM/yyyy and the outcome was that all the records were null. Have I done sth wrong?
Sep 28, 2016 at 21:05 comment added Steven Kay try d/M/yyyy as your format string (see Qt date format string spec, although note that this is a Qt5 page). I tested it on days and months with single and double figures and it seemed to work OK. If that works I'll update my answer.
Sep 28, 2016 at 20:49 comment added Ilias Machairas Thanks a lot for your detailed answer. It worked. But, for some dates, the outcome was null. Is there any explanation?
Sep 28, 2016 at 20:25 history answered Steven Kay CC BY-SA 3.0