I am trying sqlite, and have a trouble accessing DateTime field.
With sqlite3.exe, the field shows proper date value, but in delphi any date value becomes '1899/12/30'.
Very similar programs for Firebird have no problem of this kind.
Any advice please.
configuration : WindowsXP, Delphi2010, sqlite3, Devart sqlite DAC(tryal)
trouble accessing Date field
Re: trouble accessing Date field
hello,
To solve the problem, you need to specify correct date format, for example:
To solve the problem, you need to specify correct date format, for example:
Code: Select all
LiteConnection1.Options.DateFormat = 'dd.mm.yyyy';
-
- Posts: 4
- Joined: Fri 15 Jan 2010 07:20
Re: trouble accessing Date field
TSQLConnection does not have Options property.
I added "DateFormat = 'dd.mm.yyyy'" to Params list, but it did not change the matter.
I added "DateFormat = 'dd.mm.yyyy'" to Params list, but it did not change the matter.
Re: trouble accessing Date field
hello,
Our VCL LiteDAC components include these options, and the options are not implemented in dbExpress driver for SQLite yet. We will review the possibility to implement this functionality in one of the next versions.
Our VCL LiteDAC components include these options, and the options are not implemented in dbExpress driver for SQLite yet. We will review the possibility to implement this functionality in one of the next versions.
Re: trouble accessing Date field
Hello,
click on the Link...
http://www.sqlite.org/datatype3.html#datetime - 1.2 Date and Time Datatype
click on the Link...
http://www.sqlite.org/datatype3.html#datetime - 1.2 Date and Time Datatype