-
How to parse a given date string according a particular format string
I have a set of date format strings.I get a date value as input in the form
of string and the format string which i should use to parse it to create
a datetime object.I dont have the DateFormatInfo details for these formats.Ofcourse
i can parse each date string according to the format specified.But i have
a huge set of formats so the code runs into a huge one .Has anyone faced
with this problem earlier any efficient way for doing this??
Rgds
Sudha
-
Re: How to parse a given date string according a particular format string
Have you looked at DateTime.ParseExact() ?
Mattias
===
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
-
Re: How to parse a given date string according a particular format string
Why don't you simply use asp calendar as a date input control ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks