#1 2023-05-29 15:19:41

damiand
Member
From: Greece
Registered: 2018-09-21
Posts: 94

NullableDateTimeToValue doesn't work in ISO8601 variant strings

NullableDateTimeToValue fails to get the value of TNullableDateTime properties stored in the DB as ISO8601 strings, because the VariantToDouble internal call fails to convert the stored value into double.

A workaround is to use the functions NullableUtf8TextToValue in conjunction with the Iso8601ToDateTime, to convert the stored value into TDatetime.

Last edited by damiand (2023-05-29 15:24:19)

Offline

#2 2023-06-07 06:34:02

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: NullableDateTimeToValue doesn't work in ISO8601 variant strings

Offline

Board footer

Powered by FluxBB