I populate a DataSet using a sql query, one of the columns is a date in oracle format, I want to convert this to a proper date, I am therefore trying to loop through the dataset date column, and convert each entry to a date. Doesnt seem to be working though, here is the code:
DateTime basetime2=DateTime.Parse("31 Dec 1969 18:00:00");
basetime2 = basetime2.AddSeconds(double.Parse(ds.Tables.Rows[a].ItemArray.ToString()));
DataGrid1.DataSource = ds;
why is this not working, and is there an easier way?