Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

got error when i try to insert datetime to MySQL

$
0
0

hi

i try to insert datetime val to MySql and got error

Tdate is datetime in MySQL

in C# WinForm i insert like this:

insert into MyTable (id,Tdate) value ('2','" + Convert.ToDateTime(_AllDate)  + "')";

how to do it ?


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>