Error in field date
Posted: 13.02.2006, 14:53
My table it consists a field "DATACADASTRO TIMESTAMP NOT NULL"
In the Lazarus when inserting a register I use following code:
But when I load it the register (select * from table), to return an error because of the date that was saved.
Example: 14-02-06 (dd/mm/aa) saved as 0000-12-31 95:18:55.4336 and in the error it returns the date 0-12-31
How to decide this?
---
Database Firebird 1.5 / OS Linux / Lazarus 0.9.10
In the Lazarus when inserting a register I use following code:
Code: Select all
TQuery.FieldByName('DATACADASTRO').AsDateTime := Date;
Example: 14-02-06 (dd/mm/aa) saved as 0000-12-31 95:18:55.4336 and in the error it returns the date 0-12-31
How to decide this?
---
Database Firebird 1.5 / OS Linux / Lazarus 0.9.10