Forum Discussion
marin
11 years agoFrequent Contributor
Hello Mamatha,
according to TC manual this is the cause:
Here the description of method:
"...
Declaration
according to TC manual this is the cause:
Here the description of method:
"...
Declaration
The method has the following parameter:
D
The date/time value to be converted to a string. If the date part of the value is missing, it is assumed to be the “zero date”, December 30, 1899. If the time part is missing, it is not included in the resulting string.
..."
As you are using aqDateTime.Time() to fetch the time value only, there will be only time part there (see attached image and look in manual of description of aqDateTime.Time()).
This is why it will be the 30/12/1899 assumed as "zero date" for conversion method aqConvert.DateTimeToStr().
Hope this helps,
Regards,
Marin