I am calculating the days betwen date fields but I need to enter "N/A" or nothing if either or both dates are null.
This is my calulation to get the number of days between dates and it seems ot work fine.
<td style="text-align:center;"><%# (Convert.ToDateTime(Eval("EndDate")).Subtract(Convert.ToDateTime(Eval("StartDate"))).ToString("%d"))%></td>
But I cannot figure out how to add an if statment for the conditions above. Sorry, I am a total noob.
Thanks!
...
Go to the complete details ...