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