convert datetime type to string type in a dataset?

T

tom

Hi,

I want to convert a dateTime column in my dataset to the
string type column and the data in this column should look
like same. Can someone show me how to do this?

Thanks in advance.
tom
 
M

Miha Markic

Hi tom,

You might add new column (typeof(string)) to table, copy datetime values
into, remove the datetime column and rename the new column.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top