Given a string \"15:30:20\" and \"2011-09-02 15:30:20\", How can I dynamically check if a given string contains date or not?
\"15:30:20\"
\"2011-09-02 15:30:20\"
\"15:3
For dotnet core 2.0,
DateTime.TryParseExact("2017-09-02", "dd MMM yyyy", CultureInfo.InvariantCulture, DateTimeStyles.NoCurrentDateDefault, out DateTime dtDateTime)