Posted on: 8/19/2014 1:21:47 AM | Views : 398

DateTime IssuePublishDate; I get compiler error: 
 CS0165: Use of unassigned local variable 'IssuePublishDate'
So I try to fix it. 

1st  TRY
DateTime IssuePublishDate = null; doesn't work.... I can't assign null to a DateTime variable. 
CS0037: Cannot convert null to 'System.DateTime' because it is a non-nullable value type


2ND TRY
But if I use DateTime?, then I can assign null to it. 
DateTime? IssuePublishDate = null; But later on, I encountered a problem. I can't use ToString("MM/yy/dddd') with formatting inside. I can use ToString(), but not ToString("MM/dd/yyyy") 

Go to the complete details ...