on 01-07-2009 11:14 AM
Hi,
What can be the expression for calculating the difference of dates in terms of months.
For eg:
I want to calculate experience of an employee in months.System date-Date of joining
Regards
Nisha
Hi,
It should be either
(Date1-Date2)/30
or for more accurate results:
MID(Date1,6,2)-MID(Date2,6,2) +MID(Date1,1,4)12 - MID(Date2,1,4)12.
You can not ignore the year value when months needed to be calculated.
Regards,
Edna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nisha,
Update thread with solution which solved ur Problem
Thanks,
Maheshwari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If ur Date field is of type Literal Date & date format is YYYY.MM.DD then try this:
MID(SYSTIME(0),6,2) u2013 MID(Hire Date,6,2)
Also for better understanding of assignments on Dates go thr this:
Thanks,
Maheshwari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.