Open jbatte47 opened 11 years ago
What is the method being added and do you some example use cases? I ask because there's already a DateTime.TryParseExact
, although it only supports format strings.
I was actually thinking of a new interface / class: IDateTimeParser / DateTimeParser. Not sure about the method name. That'll probably just be parse, but I'm open to suggestions.
Approaches to investigate:
DateTime.TryParseExact
-- could come from config (or anywhere)Regex
parserRegex
-driven format selector