Modify Column data type

  • Thread starter Thread starter RC
  • Start date Start date
R

RC

I now have loaded an XML file into dataset, all columns are in string type
and I want to modify datatype of a column. The values stored in the column
are in date format but in "string" type. How can I modify the column
DataType into DateTime Type? After that I want to get a DataView from the
dataset for filtering record by date.

Thanks.
 
RC,

You are sure all is good in datetime format.
That you can use something as this in VBNet
dc.DataType = GetType(System.DateTime)

I hope this helps?

Cor
 
Back
Top