Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
0
down vote
favorite
i am importing data into sql server table and column type is time and Date ,so my query is ( new DataColumn("Time", typeof(string)), ) ,kindly suggest me thanks

c#


What I have tried:

<pre>
0
down vote
favorite
i am importing data into sql server table and column type is time and Date ,so my query is ( new DataColumn("Time", typeof(string)), ) ,kindly suggest me thanks

c#
Posted
Updated 3-Sep-18 22:12pm
Comments
OriginalGriff 4-Sep-18 2:02am    
If you are going to post the same question shotgun fashion across every site you can find, please at least have the decency not to copy and paste the surrounding crap from Stack Overflow as part of your question...
akhter86 4-Sep-18 2:36am    
i didn't copy and paste ,having confusion so that why i am asking question,
Richard Deeming 5-Sep-18 14:18pm    
You seem to think that we don't have access to Google. We do:
c# - convert string into date and Time before importing txt - Stack Overflow[^]

As Griff said, you haven't even bothered to remove the surrounding "0 down vote favorite" and "c#" crap that StackOverflow added.

Your copy of the question here is no clearer than the copy on StackOverflow. You should edit the question in both places to add the extra information you supplied in your StackOverflow comment.
Herman<T>.Instance 4-Sep-18 3:26am    
datacolum for datetime oftype(string). I wonder why you cannot get it working...
akhter86 4-Sep-18 5:03am    
This error i am getting (The given value of type String from the data source cannot be converted to type datetime of the specified target column. )

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900