On Tue, 19 Jun 2007 00:33:34 -0700, Jon Skeet [C# MVP] <(E-Mail Removed)>
wrote:
> [...]
> I can't say I can really explain it, although the docs have a *hint*
> about it:
>
> <quote>
> If you parse a date and time string generated for a custom culture,
> use the ParseExact method instead of the Parse method to improve the
> probability that the parse operation will succeed. A custom culture
> date and time string can be complicated, and therefore difficult to
> parse. The Parse method attempts to parse a string with several
> implicit parse patterns, all of which might fail.
> </quote>
Yeah, I saw that. It's in fact why I wound up getting to the ParseExact()
method so quickly; otherwise, I might have fumbled around longer than I
did.
> Now, it's not clear what those "several implicit parse patterns" are,
> but it sounds like it's not looking at the *patterns* from the format
> provider you specify, just other bits (like the month names etc).
I agree.

But I was left wondering, if it's not looking at the
patterns from the format provider, what is it looking at, and why do I
bother providing a format provider if it's not going to look at the
patterns in the format provider? Or maybe the question should be directed
the other way: why doesn't the format provider use its own patterns in
providing parsing help to the Parse() method (since it don't really
understand how the format provider works, I don't know which way the
question should be worded).
> Sorry it's not a more helpful answer...
Well, at least it helps me feel better about not understanding it myself.
Thanks,
Pete