Date Function
Date Function
12. How to find the Last day of Current Week, i.e. Saturday?
SELECT TRUNC(SYSDATE,'DAY')+6 FROM DUAL;
27. To display each month Start and End date upto last month of the year?
28. How to get number of seconds passed since today (since 00:00 hr.)?
SELECT (SYSDATE-TRUNC(SYSDATE))*24*60*60 NUM_OF_SEC_SINCE_MORNING FROM DUAL;
29. How to get number of seconds left today (till 23:59:59 hr.)?
SELECT (TRUNC(SYSDATE+1)-(SYSDATE))*24*60*60 NUM_OF_SEC_LEFT FROM DUAL;