string s = "20070419090909" ;
DateTime vDateTime;
if ( DateTime . TryParseExact(s, "yyyyMMddHHmmss" , null ,
System . Globalization . DateTimeStyles . None, out vDateTime))
MessageBox . Show(vDateTime . ToString());
else MessageBox . Show( " );