I want to write a date to an SQLite3 database table, then retrieve it to a DBGrid column.
I enter the date eg 05/12/2022 as the string 2022-12-05 into Text Field
Using DBBrowser If I enter:
SELECT strftime('%d/%m/%Y', xDate), xNumber from transactions, I get the right result ie 05/12/2022.
If I run the query:
SQLQuery.SQL.Text(SELECT strftime(''%d/%m/%Y'', xDate), xNumber from transactions)
DataSource1.DataSet := SQLQuery1;
DBGrid1.DataSource := DataSource1;
SQLQuery1.Open;
The date column of the grid contains all blanks.
Why should this be? Am I doing everything correctly?
Pat