[Solved] How to INSERT date into sql db date column using dateTimePicker? - CodeProject

[Solved] How to INSERT date into sql db date column using dateTimePicker? - CodeProject

瀏覽:322
日期:2025-06-16
I way to solve the problem would be to change the data type in the SQL DB to VARCHAR(50) and the execute the following SQL query in your code. con.Open(); cmd.CommandText = " INSERT INTO dbo.Person (birthdate) VALUES ('" + this.dateTimePicker ......看更多