I have a program which calls a service when it executes, it gives me certain values and they are saved in a csv file. One of those values is a date which when it is empty shows me 1/1/0001 12:00:00 AM as a minimum value.
What I want is that before I show the result, I can replace this date with a null or void value so I do not have to show that date with values that can confuse the user.
This is part of my code:
newLine = string.Format("\"{0}\",\"{1}\"",
item.InvitationDate, //Convert.ToDateTime(String.IsNullOrEmpty(item.InvitationDate) ? "" :
item.Reminder1SentDate);
As you can see, the item.invitationDate
field is what results in what I indicated above. After the comment is what I tried to do but I have not been successful
Thanks