procedure TForm1.buttonclick(Sender: TObject);
begin
with table1 do
begin
TDateField(FieldByName('DateNo1')).DisplayFormat:='dd-mm-yyyy';
TDateField(FieldByName('DateNo2')).DisplayFormat:='yyyymmdd';
Active:=True;
end;
end;
look simple right? thank you for coming here, see you next time.

0 Response to "Date format in database"
Post a Comment