[fpc-pascal] StrToDate bug?

Bart bartjunk64 at gmail.com
Sat May 10 15:30:24 CEST 2014


On 5/10/14, Michael Van Canneyt <michael at 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



More information about the fpc-pascal mailing list