You create a function as you would normally do, with input parameters (2 fields for the dates), output parameter(to give you back the seconds interval), define these types as appropriate, and then on the body function you convert each date to seconds.
Then you subtract one from the other.
I am pretty sure that you know how to convert dates to seconds.
Once you have some code and if you still have problems please come back with specific problems.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.