IFormatProvider theCultureInfo = new System.Globalization.CultureInfo("en-GB", true);
DateTime theDateTime = DateTime.ParseExact(myDate, "mm-dd-yyyy", theCultureInfo);
Tags: Convert string to DateTime, DateTime, String
.NET Programming Tips | C#
Cancel reply to comment
Domain Registration, Web Hosting and Reseller Web Hosting Start Web Hosting from just $2.5/Month
We Provide IT solutions and services to deliver a unique blend of real-business experience with a strong engineering, international project delivery. We are a software development firm.
Copyright © 2010 Sapnep. All Rights Reserved.