The DateTime.TryParse method takes a DateTime as an argument, not a DateTime? ?
Right now I have the following code:
if(!DateTime.TryParse(reader["Placed"].ToString(), out _placed)){
throw new Exception("Order's placed datetime could not be parsed.");
}
where _placed is of type
Nullable<DateTime> _placed = null;
What’s a way around that?
How about this instead: