Click here to Skip to main content
15,903,175 members
Articles / .NET

USE of DateTime.ParseExact Method

18 Mar 2010CPOL 9.5K   2  
string dateString = "18MAY_03_2010"; // Modified from MSDNstring format = "ddMMM_MM_yyyy";DateTime dateTime = DateTime.ParseExact(dateString, format, CultureInfo.InvariantCulture);Console.WriteLine(dateTime);Console.ReadKey();[Modified: added code formatting]
We're sorry, but the article you are trying to view was deleted at 27 Nov 2013.

Please go to the .NET Table of Contents to view the list of available articles in this section.