Format string is also not trivial. The dates: 2011-06-26T01:52:00+10:00 2011-06-26T11:52:00Z - are in the same ISO format, but imaging the format string matching both. I can, of course, define a regexp, and slow it down to hell.. But this defeats the purpose of exact and fast processing. On 27 June 2011 13:56, Ilya A. Volynets-Evenbakh <ilya@total-knowledge.com>wrote: > On 06/26/2011 08:53 PM, Alexey Parshin wrote: > > That's not much useful for me :( > > > > I need an exception for every string that is in the wrong format. For > > instance, a totally valid date time string, '27/06/2011 1:52PM', should > > throw an exception when '2011-06-26T01:52:00+10:00' is required. > > And vice versa.. > For such cases format string should be passed in.... > -- Alexey Parshin, http://www.sptk.net
List hosted by Total Knowledge