I am having trouble saving a date from the date picker, and it seems that this is the line
causes a syntax issue:
The database column type is DateTime (but I also tried just Date)
I have tried a few variations on this code but I still get the error message "syntax error' near 'SermonDate'" .
There always seem to be issues when it comes to saving a date in a database!
What am I doing wrong!
Thanks
Clive
causes a syntax issue:
objCommand.Parameters.Add("@SermonDate", SqlDbType.DateTime).Value = RadDatePicker1.SelectedDate.Value |
I have tried a few variations on this code but I still get the error message "syntax error' near 'SermonDate'" .
There always seem to be issues when it comes to saving a date in a database!
What am I doing wrong!
Thanks
Clive