I have two strings:
string one = \"13/02/09\"; string two = \"2:35:10 PM\";
I want to combine these two together and convert to a Dat
Dat
use DateTime.Parse () to parse the date and the time separately. Then add the time component of the second one to the first one, like this
var date = DateTime.Parse (one); var time = DateTime.Parse (two); var result = date + time - time.Date;