Results 1 to 3 of 3

Thread: Parsing Date Without Specific Month Format

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2007
    Posts
    544

    Parsing Date Without Specific Month Format

    Is there a way to do so?

    Say sometimes I see March 2nd, 1921

    Latter I see 2 March 2010

    Is there a function GetDate(SomeString as string) as Date?

    That will sort of recoqnize all those different format and "try" parsing.

  2. #2
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: Parsing Date Without Specific Month Format

    You mean like Date.Parse?

  3. #3
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Parsing Date Without Specific Month Format

    DateTime.TryParse()

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width