trouble accessing Date field

Discussion of open issues, suggestions and bugs regarding LiteDAC (SQLite Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Eiichiro Kamiya
Posts: 4
Joined: Fri 15 Jan 2010 07:20

trouble accessing Date field

Post by Eiichiro Kamiya » Thu 18 Oct 2012 05:19

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)

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: trouble accessing Date field

Post by AlexP » Thu 18 Oct 2012 08:21

hello,

To solve the problem, you need to specify correct date format, for example:

Code: Select all

  LiteConnection1.Options.DateFormat = 'dd.mm.yyyy';

Eiichiro Kamiya
Posts: 4
Joined: Fri 15 Jan 2010 07:20

Re: trouble accessing Date field

Post by Eiichiro Kamiya » Sat 20 Oct 2012 02:04

TSQLConnection does not have Options property.
I added "DateFormat = 'dd.mm.yyyy'" to Params list, but it did not change the matter.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: trouble accessing Date field

Post by AlexP » Tue 23 Oct 2012 08:48

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.

mtbf40
Posts: 2
Joined: Tue 30 Oct 2012 14:59

Re: trouble accessing Date field

Post by mtbf40 » Tue 06 Nov 2012 10:14

Hello,

click on the Link...
http://www.sqlite.org/datatype3.html#datetime - 1.2 Date and Time Datatype

Post Reply