I am coding in Vb.Net
I knew it was possible (or I am pretty sure it was) in vb.6 to use the null in a datetimepicker.
I need to have 2 dateTimePicker cause at first it was only textbox that were validated, but I got a request from some users that they wanted to see a Calender at this place.
I have one that is the Date I received the documents and the other one is the date the document has been send back.
for the first one, I don't have problem, there is always a value in it, today or another one.
but for the second one. if the documents haven't been send back yet, the value need to be Nothing, it's need to be empty. but I haven't found any way to do it.
when I do,
DateTimePicker1.Value = System.DBNull.Value
it's just tell me that a DbNull.Value can't be converted to a date value.
What's should I do then ?
my boss told me that January 1 of 1900 is a null value but that's not true, I haven,t found anything about it. and that way it will be complicate for the user to delete de date, he won't remeber to change it for january 1, 1900
Any one got any idea on how I could go and get all of this out and running ?