Re: best design for parse



GS,

Maybe can you avoid this in 2007 and all things like that as
DateTime.parseExact, but have a look to the nicely by Microsoft inbuild
globalization and than the to that related ToString option.

Cor

"gs" <gs@xxxxxxxxxxxxxx> schreef in bericht
news:OtrnsPTMHHA.4720@xxxxxxxxxxxxxxxxxxxxxxx
let say I have to deal with various date format and I am give format
string from one of the following
dd/mm/yyyy
mm/dd/yyyy
dd/mmm/yyyy
mmm/dd/yyyy
dd/mm/yy
mm/dd/yy
dd/mmm/yy
mmm/dd/yy
dd/mm
what is the best way to come up a relevant regex for the incoming format
string
a) use two array and statically match
b) use regex to find the order



.



Relevant Pages

  • Re: best design for parse

    (microsoft.public.dotnet.languages.vb)
  • Re: best design for parse
    ... I am dealing with lines of string data and the date fields ...
    (microsoft.public.dotnet.languages.vb)
  • Re: best design for parse
    ... how would that handle string date mixed with other data? ... what is the best way to come up a relevant regex for the incoming ...
    (microsoft.public.dotnet.languages.vb)
  • best design for parse
    ... let say I have to deal with various date format and I am give format string ...
    (microsoft.public.dotnet.languages.vb)
  • Re: best design for parse
    ... how would that handle string date mixed with other data? ... what is the best way to come up a relevant regex for the incoming format ...
    (microsoft.public.dotnet.languages.vb)