Convert from a string to datetime
<p>First of all I have a xamdatetimeeditor which is for user to select the date and time. It is in the format of "yyyy/MM/dd HH:mm:ss". From there, I would like to convert it to "yyyyMMddHHmmss" format. Which means just removing the special characters and spaces.</p>

<p>Do I have to use the DateTime.TryParseExact method? Or do I have to use the string replace function? What is the best solution?</p>

<p><strong>FOUND THE SOLUTION!!</strong> just have to use string format = "yyyyMMddHHmmss"; and date = getdate.ToString(format);</p>
