Hello
I am trying to convert the Date's coming from my database to standard. However I want to accomplish this within my script rather then doing the derived columns method.
This is what I am trying to do but it is not working
if(!(found.AccountExpirationDate == null){
AccountExpirationDate= Datetime.ParseExact (fAccountExpirationDate)
}
else{
AcountExpirationDate = Convert.ToDateTIme("1900-01-01 13:04:06);}
and I have defined DateTime?AccountExpirationDate
my error is AccountExpirationDate does not exist in this context?
Any ideas?