Click here to Skip to main content
15,899,474 members
Home / Discussions / C#
   

C#

 
AnswerRe: IDataReader and Null values Pin
vaghelabhavesh4-Feb-09 15:10
vaghelabhavesh4-Feb-09 15:10 
General[Message Deleted] Pin
Terick6-Feb-09 4:59
Terick6-Feb-09 4:59 
GeneralRe: IDataReader and Null values Pin
vaghelabhavesh6-Feb-09 8:04
vaghelabhavesh6-Feb-09 8:04 
QuestionDataGridComboBoxColumn.. Did it ever exist?? Pin
Muammar©4-Feb-09 8:31
Muammar©4-Feb-09 8:31 
AnswerRe: DataGridComboBoxColumn.. Did it ever exist?? Pin
Tony Richards4-Feb-09 9:02
Tony Richards4-Feb-09 9:02 
QuestionCross cutting code Pin
Nathan Gloyn4-Feb-09 8:28
Nathan Gloyn4-Feb-09 8:28 
AnswerRe: Cross cutting code Pin
Jon Rista4-Feb-09 8:58
Jon Rista4-Feb-09 8:58 
QuestionCannot implicitly convert type 'System.DateTime?' to 'System.DateTime' Pin
Lodeclaw4-Feb-09 7:46
Lodeclaw4-Feb-09 7:46 
DateTime dateRented = rental_InvoiceTableAdapter1.getTimeRentedbyInvoiceNo(int.Parse(txtInvoiceNo.Text));

I can't figure out why I'm getting this exception thrown by this code. I'm trying to collect a single cell from the DateTime column "Time_Rented" using a SQL statement. The SQL statement works fine in the query builder, so it has to be something in the C# code.

The entire error message is:
"Cannot implicitly convert type 'System.DateTime?' to 'System.DateTime'. An explicit conversion exists ( are you missing a case?)"

Both sides of the statement are DateTime, aren't they? I don't understand why it can't convert it.
Please help!
AnswerRe: Cannot implicitly convert type 'System.DateTime?' to 'System.DateTime' Pin
Kristian Sixhøj4-Feb-09 7:55
Kristian Sixhøj4-Feb-09 7:55 
GeneralRe: Cannot implicitly convert type 'System.DateTime?' to 'System.DateTime' Pin
Lodeclaw4-Feb-09 7:58
Lodeclaw4-Feb-09 7:58 
GeneralRe: Cannot implicitly convert type 'System.DateTime?' to 'System.DateTime' Pin
Christian Graus4-Feb-09 9:24
protectorChristian Graus4-Feb-09 9:24 
AnswerRe: Cannot implicitly convert type 'System.DateTime?' to 'System.DateTime' Pin
Alan N4-Feb-09 7:58
Alan N4-Feb-09 7:58 
GeneralRe: Cannot implicitly convert type 'System.DateTime?' to 'System.DateTime' Pin
Lodeclaw4-Feb-09 8:01
Lodeclaw4-Feb-09 8:01 
AnswerRe: Cannot implicitly convert type 'System.DateTime?' to 'System.DateTime' Pin
Ben Fair4-Feb-09 8:03
Ben Fair4-Feb-09 8:03 
GeneralRe: Cannot implicitly convert type 'System.DateTime?' to 'System.DateTime' Pin
Lodeclaw4-Feb-09 8:07
Lodeclaw4-Feb-09 8:07 
GeneralRe: Cannot implicitly convert type 'System.DateTime?' to 'System.DateTime' Pin
Alan N4-Feb-09 8:16
Alan N4-Feb-09 8:16 
GeneralRe: Cannot implicitly convert type 'System.DateTime?' to 'System.DateTime' Pin
Lodeclaw4-Feb-09 8:24
Lodeclaw4-Feb-09 8:24 
QuestionHow to create a modal dialog during execution [modified] Pin
Don.Y4-Feb-09 7:21
Don.Y4-Feb-09 7:21 
AnswerRe: How to made a modal dialog during execution Pin
musefan4-Feb-09 7:26
musefan4-Feb-09 7:26 
AnswerRe: How to made a modal dialog during execution Pin
vaghelabhavesh4-Feb-09 8:31
vaghelabhavesh4-Feb-09 8:31 
GeneralRe: How to made a modal dialog during execution Pin
Don.Y4-Feb-09 23:08
Don.Y4-Feb-09 23:08 
GeneralRe: How to made a modal dialog during execution Pin
Dave Kreskowiak5-Feb-09 2:11
mveDave Kreskowiak5-Feb-09 2:11 
GeneralSaving to exe Pin
SimpleData4-Feb-09 7:17
SimpleData4-Feb-09 7:17 
GeneralRe: Saving to exe Pin
musefan4-Feb-09 7:31
musefan4-Feb-09 7:31 
GeneralRe: Saving to exe Pin
musefan4-Feb-09 7:44
musefan4-Feb-09 7:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.