I need a function in Oracle like this.
When I give the parameter a simple date. Then the function should get me on the last day of the previous month.
Example:
FunctionName(10.02.2011) Result should be 31.01.2011 FunctionName(21.03.2011) Result should be 28.02.2011 FunctionName(31.07.2011) Result should be 30.06.2011 (Even date is last day of month)
How can i do this? By the way, I never use Oracle .
function database oracle date-arithmetic
Soner gΓΆnΓΌl
source share