T
tshad
I am trying to set a date in a DateTime variable that I get from a user:
DateTime theDate;
theDate = "08-15-05";
This gives me an error:
Cannot implicitly convert type 'string' to 'System.DateTime'
How do I set it?
I then want to compare it to see if it is equal to another string variable
that is also a date:
if theDate = stringDate...
How do I do this with the DateTime variable?
Thanks
Tom
DateTime theDate;
theDate = "08-15-05";
This gives me an error:
Cannot implicitly convert type 'string' to 'System.DateTime'
How do I set it?
I then want to compare it to see if it is equal to another string variable
that is also a date:
if theDate = stringDate...
How do I do this with the DateTime variable?
Thanks
Tom