G
Guest
I'm reading data from a file using OleDbDataAdapter into a strongly type
dataset. One of the columns has a DataType of System.DateTime. The data
that for this column in the file is of format yyyyMMDD. When an
..Fill(dataset.datatable) is executed I receive the following exception:
'Invalid cast from 'Inte32' to 'DateTime'. Couldn't store <20070416> in
XXXX Column. Expected type is DateTime.
How can I read in dates of this format?
Thanks for your help in advance!
dataset. One of the columns has a DataType of System.DateTime. The data
that for this column in the file is of format yyyyMMDD. When an
..Fill(dataset.datatable) is executed I receive the following exception:
'Invalid cast from 'Inte32' to 'DateTime'. Couldn't store <20070416> in
XXXX Column. Expected type is DateTime.
How can I read in dates of this format?
Thanks for your help in advance!