2012/3/16 St�phane Ducasse
<stephane.ducasse@inria.fr>
> how did you handle things like
> 1/1/11 (or didn't you?)
> or worse
> 1/1/1 �-> 01.01.2001?
This is not related to parsing but to the interpretation of the data :)
I agree with Stef, your seems to be more an interpretation problem. If you are looking for a parser that can parse any kind of datas you can write something like:
#digit asParser plus flatten separatedBy: ('/' asParser / '.' asParser)
But to know what you reading you should have some convention to follow.
Cheers,
Fabrizio
There is no magic no?
BTW this is the birthday of one of my sons :)
>
> how have you treated dates like
> 1/12/2012 -> 12.01.2012 or 1.12.2012?
>
> or even more "problematic"
> 12/12/2012
Again why a computer looking at only one sample would be prescient?
> and the like there are so many way to parse the dates....
>
> Regards
> Friedrich
>
> --
> Q-Software Solutions GmbH; Sitz: Bruchsal; Registergericht: Mannheim
> Registriernummer: HRB232138; Geschaeftsfuehrer: Friedrich Dominicus
>