On 5/10/14, Michael Van Canneyt <mich...@freepascal.org> wrote:

>> StrToDate('6-12-2011 ') (note the space at the end) actually gives me
>> 6-12-2014.
>
> That is because the last part is not 'correct' (contains trailing garbage)
> and
> then the strtodate assumes the year is missing, and substitutes the current
> year,
> as if you had specified 6-12.
>
> It still functions like this in trunk.

I'll open a ticket for it in bugtracker then.

Bart
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to