tanj1035
asked on
how to calculate the date range and display it in years+months
Hi,
How to calculate the length of the employment and display it in a format like 1 years 8 months. [customeremployementstartd ate]
The query will be something like
e as length of the employment
from tblcustomers
ate] is in a format like 2012-12-13 09:00:00.000
Thank you very much
How to calculate the length of the employment and display it in a format like 1 years 8 months. [customeremployementstartd
The query will be something like
select getdate()- customeremploymentstartdatfrom tblcustomers
[customeremployementstartdThank you very much
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
FLOOR(DATEDIFF(DAY, customeremploymentstartdat
FLOOR(DATEDIFF(DAY, customeremploymentstartdat
*
FROM tblcustomer