This is what I want to do:
PeriodText := 'As at: ', EndDate
This is what PeriodText is:
PeriodText is a Text DataType and has a length of 25.
This is my error:
Error: Type conversion is not possible because 1 of the operators contains an invalid type. Text := Date
Is there a way to convert, cast, concatenate the date type into/with the string and then assign it to the text datatype? I would accept the possibility of only assigning a type casted EndDate to it.
Also, I cannot change PeriodText to a date type because it is used in other locations outside of my IF statement.
*This post is locked for comments
I have the same question (0)