Hi experts.
Well I have a dbGrid which I get some data from my SQL database.
The problem is one of the field retrieves DateTime.
I only want dbGrid to show the date value in that field, not the whole value.
What should I do? I Could make heavy SQL sentence..or is it better ways?
ex. how I get data to dbgrid (exports knows it)
Datamodul.MyADOQuery.SQL.Text := 'bla..bla'
Datamodul.MyADOQuery.Active := True;
Datamodul.MyDataSource.DataSet := Datamodul.MyADOQuery;
DBGrid1.DataSource := Datamodul.MyDataSource;
cheers,
mha
Well I have a dbGrid which I get some data from my SQL database.
The problem is one of the field retrieves DateTime.
I only want dbGrid to show the date value in that field, not the whole value.
What should I do? I Could make heavy SQL sentence..or is it better ways?
ex. how I get data to dbgrid (exports knows it)
Datamodul.MyADOQuery.SQL.Text := 'bla..bla'
Datamodul.MyADOQuery.Active := True;
Datamodul.MyDataSource.DataSet := Datamodul.MyADOQuery;
DBGrid1.DataSource := Datamodul.MyDataSource;
cheers,
mha