forum

home / developersection / forums / c# datetime mysql command

C# DateTime MySQL Command

Anonymous User 3834 12-Dec-2013

I am having issues with using the DateTime as the parameter to work for a sql query.

Here is the query I would like :

command.CommandText = "SELECT idGameNumber FROM GameOutcome WHERE GameOutcome.gameDate = <insert DateTime game_time>";

where game_time is a DateTime object and Gameoutcome.gameDate is a DATETIME datatype.

What do I need to put on the right side of the = sign in there WHERE clause?


c# c# 
Updated on 12-Dec-2013

I am a content writter !


Message
Can you answer this question?

Answer

1 Answers

Liked By