- 17.9K All Categories
- 3.4K Industry Applications
- 3.4K Intelligent Advisor
- 73 Insurance
- 537.3K On-Premises Infrastructure
- 138.6K Analytics Software
- 38.6K Application Development Software
- 6K Cloud Platform
- 109.6K Database Software
- 17.6K Enterprise Manager
- 8.8K Hardware
- 71.2K Infrastructure Software
- 105.3K Integration
- 41.6K Security Software
Idea : Date functions which will give output as days, years, minutes, seconds etc...
This idea is to have a function for date which will take input as three parameters.
name of the function can be DIFF_DATES (DATE1 WITH TIME STAMP, DATE2 WITH TIME STAMP, OPTIONAL PARAMETER) -> If we pass input as date1 and date2 and third paramter as 'D' then the function should return output as difference between two dates in days.
below table will give a clear idea:
|23-MAY-2016||22-APR-2016||MONTHS||1 Month / 30 days|
|23-MAY-2016||22-MAY-2015||YEARS||1 year / 12 months / 365 days|
|23-MAY-2016 22:10:00||23-MAY-2016 22:40:15||MINUTES||20MINUTES 15 SECONDS|
This queries were asked several times by many of the developers
Please let us know whether you would like to have support for SQL date function which will help in reducing the customized functions and also as this is the most important and used function in a day to day life. @connor