raffiq_eddy
05-18-2009, 05:13 AM
Hi,
Using date I want to produce output like this:
7.8 OR
7 Years 8 Months
I found solution, as following:
DATE_FORMAT(FROM_DAYS(TO_DAYS(NOW())-TO_DAYS(Employee.dDOEmp)), '%y.%m')
the result look like so:
01.05 (or 1 year 5 months)
But the problem is, when the result is below 1 year, it showed as following:
00.00
Can anyone help me to solve this one?
TIA
Using date I want to produce output like this:
7.8 OR
7 Years 8 Months
I found solution, as following:
DATE_FORMAT(FROM_DAYS(TO_DAYS(NOW())-TO_DAYS(Employee.dDOEmp)), '%y.%m')
the result look like so:
01.05 (or 1 year 5 months)
But the problem is, when the result is below 1 year, it showed as following:
00.00
Can anyone help me to solve this one?
TIA