[fpc-devel] Behavior of conversion between vardate variants and string in fpc and delphi

Luiz Americo Pereira Camara luizmed at oi.com.br
Mon Apr 4 18:43:18 CEST 2011


On 4/4/2011 04:34, LacaK wrote:
>
>> So, what should be done?
>>
>> 1) Be totally compatible with Delphi: convert date to string with 
>> hardcoded format and raise exception when doing the conversion back?
>> 2) Use the hardcoded format used to convert from vardate variant to 
>> string and vice versa?
>> 3) Use shortdateformat to convert from vardate variant to string and 
>> vice versa?
> Point 3 sounds to me as best and logical.
>

Agree. my second patch does that

Luiz



More information about the fpc-devel mailing list