SyntaxFix
Write A Post
Hire A Developer
Questions
string inputString = "2000-02-02"; DateTime dDate; if (DateTime.TryParse(inputString, out dDate)) { String.Format("{0:d/MM/yyyy}", dDate); } else { Console.WriteLine("Invalid"); // <-- Control flow goes here }