KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a date represented as a string thus 20130116154407 I called DateTime.Parse on this but it failed. How can I convert this to a DateTime? Incidentally the timezone is CET. EDIT The solutions provided are very useful, so far but it seems they do not support 24 hour clocks, still looking for a solution that does. EDIT 2 The correct format is DateTime.ParseExact(str, "yyyyMMddHHmmss", CultureInfo.InvariantCulture) Thanks, Sachin
Tags (comma-separated)
Save Edits
Cancel