How can I change the nullable DateTime dt2 to an empty string?
DateTime = DateTime.Now; Console.lightline (dt.tostring ("yyyy-MM-dd hh: mm: ss")); // Does the date work? DT2 = DateTime.Now; Console.light line (dt 2.toString ("yyyy-MM-dd hh: mm: ss")); // returns the following error:
There is no overload for the method.
No comments:
Post a Comment