Code: Select all
SELECT DATE_FORMAT( CTime, '%Y/%m/%d' ) AS FClicked, count( * ) AS Cnt
FROM TableName
GROUP BY FClicked
ORDER BY FClicked
This works with 6.6.6 stable, but not with the SVN version of 7.0 alpha.
Tried with
Fields[0].AsString
FieldByName('FClicked').AsString
FieldByName('FClicked').AsDateTime (gives exception of course, since '??' is not a valid date)
Tested on Win32 and Linux32 .