Why does the following code:
Result in the output (specifically the last line):
And what is the best way to do this instead so as always to get the expected values?
asked 08 Feb '13, 16:42
To understand how this works you probably should check conversion rules for elementary data types. When you add value to variable l_dat it's converted to the number of days since 01.01.0001. In first and 2nd example number is converted back to datum type while you use assignment operator.
Try to use MF 'FORMAT DATE 4 OUTPUT'.
answered 09 Feb '13, 08:08