Ray's Asp.net Blog
Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
Pages
(Move to ...)
Event registration app with QR/Paypal
Home
▼
Thursday, September 27, 2012
How to solve "String was not recognized as a valid DateTime." when parse a date?
By ParseExact
var date = System.DateTime.ParseExact(StartDate, "MM/dd/yyyy",null);
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment