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

Report Column function to calculate days between two dates

Accepted answer
21
Views
6
Comments
edited Apr 18, 2017 8:04PM in Reporting & Analytics for B2C Service 6 comments

Content

All,

As the title suggests, I'm attempting to use functions to calculate days between two dates, however I have not been successful to have the function return the result in full days, below is my code. The parameter "packageName$ObjectName.Date" is of "Date" data type. As is, the result of this code is a rather large number (I'm assuming seconds).

Any advice would be appreciated.

Version

May 2016

Code Snippet

             to_number(time_format(date_diff(packageName$ObjectName.Date,sysdate()),'DD')) 
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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