Storing empty dates

juank
juank used Ask the Experts™
on
Hi:

I have a simpe question, silly I'd say, but so far I couldn't get an answer.

Is there any method, Using Delphi3, to store an empty date in a DateField, without causing to appear '12/30/1899'.

I'll appreciate any suggestion

Regards

JuanK
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
If I understand you want to clear DateField in your table.. so this should do it:

Table1.Edit;
Table1.FieldByName('DateField').AsString:='';
Table1.Post;

Commented:
Maybe
Table1.FieldByName('DateField').Clear;

Author

Commented:
It was a silly question. Wasn't it?
Thanks for your cooperation

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial