I am trying to convert a date field that is stored in the AS400 as a numeric field. The data is YYYYMMDDMMSS. However, when displayed in Crystal 10 or 11 is shows commas in between for example 20040120.00. The formula I am trying to use is as follows:
NumberVar input:={CKSCHEDE.SEFRDT};
Date (Val(ToText(input,0,'''')[1 to 4]),
Val(ToText(input,0,'''')[5 to 6]),
Val(ToText(input,0,'''')[7 to 8]))
The error I keep receiving is that the month must be between 1 & 12. I would appreciate any help.
Thanks
NumberVar input:={CKSCHEDE.SEFRDT};
Date (Val(ToText(input,0,'''')[1 to 4]),
Val(ToText(input,0,'''')[5 to 6]),
Val(ToText(input,0,'''')[7 to 8]))
The error I keep receiving is that the month must be between 1 & 12. I would appreciate any help.
Thanks