Author: young345 | Posted on: 12/21/2009 7:33:54 AM | Views : 1336

Hi
 
I have the following line of code
 
return Convert.ToDateTime(date.Value).ToShortDateString();
 
I get the error Cannot implicitly convert type 'string' to 'System.DateTime?'        
Can anyone please let me know where I am going wrong and how I can resolve this problem?
I need it to format it in the shortdateString format because when I remove that bit it includes the time which I do not want.
 
Thank you very much
...

Go to the complete details ...