Try this:
var input = "2004/01/02 12:01:03";
DateTime aDate;
DateTime.TryParse(input, out aDate);
string output = aDate.ToString("yyyyMMddHHmmss");
1
solved Convert from a string to datetime
Try this:
var input = "2004/01/02 12:01:03";
DateTime aDate;
DateTime.TryParse(input, out aDate);
string output = aDate.ToString("yyyyMMddHHmmss");
1
solved Convert from a string to datetime