Difference between two dates with decimal output — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Difference between two dates with decimal output

Summary:

In an OTBI report, the requirement is to calculate years of service for terminated employees (difference between hire and term dates). The output needs to be 2 decimals, for example 2.07 or .06. Maybe I'm using the wrong formula. Thanks for your help!

TIMESTAMPDIFF(SQL_TSI_MONTH, "Worker"."Enterprise Hire Date", "Worker"."Termination Date")

Content (please ensure you mask any confidential information):


Version (include the version you are using, if applicable):



Code Snippet (add any code snippets that support your topic, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!