Question: how to convert mm dd yyyy to datetime in c#?
Answer: ToString("MM/dd/yyyy h:mm"); Notice the uppercase/lowercase mM difference. Also if you will always deal with the same datetime format string, you can make it easier by writing them as C# extension methods. DateTime now = DateTime.