SyntaxFix
Write A Post
Hire A Developer
Questions
string DateString = "11/12/2009"; IFormatProvider culture = new CultureInfo("en-US", true); DateTime dateVal = DateTime.ParseExact(DateString, "yyyy-MM-dd", culture);
These Links might also Help you
DateTime.ToString() Patterns
String Format for DateTime [C#]