[fpc-pascal] StrToDate bug?

Michael Van Canneyt michael at freepascal.org
Sat May 10 15:43:40 CEST 2014



On Sat, 10 May 2014, Bart wrote:

> 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.

Fixed.

Michael.



More information about the fpc-pascal mailing list