DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Sudha Guest

    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

  2. #2
    Mattias Sjögren Guest

    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.

  3. #3
    UglyKid Guest

    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 ?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links