hello I run an sql which returns a datarow itemarray field of
system.datetime . the problem is the database
only stores the date, but the returned value includes a time of
12:00:00 AM. I do not want the time.
How can I get only the date returned, just as it is stored in the
database? thanks
reference - system.data.ora cleclient
using System;
using System.Collecti ons.Generic;
using System.Text;
using System.Data.Ora cleClient;
using System.Data;
OracleConnectio n oOracleConn = new OracleConnectio n(conn);
oOracleConn.Ope n();
OracleCommand cmd = oOracleConn.Cre ateCommand();
cmd.CommandText = sql;
cmd.CommandType = CommandType.Tex t;
OracleDataAdapt er adapt = new OracleDataAdapt er(cmd);
DataSet myDataSet = new DataSet();
myDataSet.Clear ();
adapt.Fill(myDa taSet);
system.datetime . the problem is the database
only stores the date, but the returned value includes a time of
12:00:00 AM. I do not want the time.
How can I get only the date returned, just as it is stored in the
database? thanks
reference - system.data.ora cleclient
using System;
using System.Collecti ons.Generic;
using System.Text;
using System.Data.Ora cleClient;
using System.Data;
OracleConnectio n oOracleConn = new OracleConnectio n(conn);
oOracleConn.Ope n();
OracleCommand cmd = oOracleConn.Cre ateCommand();
cmd.CommandText = sql;
cmd.CommandType = CommandType.Tex t;
OracleDataAdapt er adapt = new OracleDataAdapt er(cmd);
DataSet myDataSet = new DataSet();
myDataSet.Clear ();
adapt.Fill(myDa taSet);
Comment