ParseExact (and TryParseExact)
August 21, 2021 ยท View on GitHub
I never remember the parameters for these methods, so here they are:
DateTime.TryParseExact(userInput, "yyyy-MM-dd", System.Globalization.CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.None, out birthday)