I have to provide a report showing length of service of employees over the last two years.
I have used the following:
if{EMP_RECORD.E_DATE_LEFT}<DateValue (1967,12,31)
then datediff
("y",CurrentDate,{EMP_RECORD.E_DATE_JOINED})
else
{EMP_RECORD.E_DATE_LEFT}-{EMP_RECORD.E_DATE_JOINED}
This works but shows the result in number format.
ie (To-day 30/07/2002)-(Startdate 25/03/1996) = 2318.
How can I get it to display in yy.yy format The above should read 6.06 years.
Appreciate some advice on this.
I have used the following:
if{EMP_RECORD.E_DATE_LEFT}<DateValue (1967,12,31)
then datediff
("y",CurrentDate,{EMP_RECORD.E_DATE_JOINED})
else
{EMP_RECORD.E_DATE_LEFT}-{EMP_RECORD.E_DATE_JOINED}
This works but shows the result in number format.
ie (To-day 30/07/2002)-(Startdate 25/03/1996) = 2318.
How can I get it to display in yy.yy format The above should read 6.06 years.
Appreciate some advice on this.