Couple of points in addition to the other solutions...
1. Never assume that your data input is in the correct format.
It's better to use
TryParse[
^] or
ParseExact[
^]
2. Never assume that your code is only going to be used in your own time zone / Culture. Handle other formats/cultures in some way.
For example: (needs
using System.Globalization;
var test = "07/29/2015 08:48:03";
var culture = CultureInfo.CreateSpecificCulture("en-US");
DateTime dtResult;
if(DateTime.TryParse(test, culture,DateTimeStyles.None, out dtResult))
Console.WriteLine(String.Format("Output date is : {0}",dtResult));
else
Console.WriteLine(String.Format("Input string is not a date in {0}", culture.Name));
Because my PC is currently set up for United Kingdom, this runs without error and gives (Note the change to dd/mm from mm/dd)
Output date is : 29/07/2015 08:48:03