Ray's Asp.net Blog
Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
Pages
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment