Hi , I'm trying to change a dataset's item's value but cant seem to be able to do it instead it keeps the same value in the dataset.table.row.item . What I'm trying to do in my code is get back a dataset (which has date and time information in one of the cells) and go through each row and change the cell that contains the date/time data to just contain the date information by splitting the date and time based on the space between them and then retaining the first index of the returned array and setting that value back in that dataset.table.row.item .
HERES MY CODE :
While dateCounter < dset.Tables(0).Rows.Count
strDate = Split(dset.Tables(0).Rows(dateCounter).Item(3).ToString, " ")
truncatedDate = strDate.GetValue(0).ToString
dset.Tables(0).Rows(dateCounter).Item(3) = truncatedDate
dateCounter = dateCounter + 1
End While
then after all that , I still get the date and time !help , this is in .net 2.0


help , this is in .net 2.0
Reply With Quote


Bookmarks