We can get it using to_char function in oracle
eg: To get current day select to_char(sysdate) today from dual
eg: to get start day of week select to_char(sysdate+ (1-to_char(sysdate,'D'))) startdayofweek from dual
eg: to get end day of the week select to_char(sysdate+ (7-to_char(sysdate,'D'))) endofweek from dual
eg: to get start and end date of week
select to_char(sysdate+ (1-to_char(sysdate,'D'))) startdayofweek, to_char(sysdate+ (7-to_char(sysdate,'D'))) endofweek from dual
We can get it using to_char
Sun, 11/30/2008 - 05:06 — adminWe can get it using to_char function in oracle
eg: To get current day
select to_char(sysdate) today from dual
eg: to get start day of week
select to_char(sysdate+ (1-to_char(sysdate,'D'))) startdayofweek from dual
eg: to get end day of the week
select to_char(sysdate+ (7-to_char(sysdate,'D'))) endofweek
from dual
eg: to get start and end date of week
select to_char(sysdate+ (1-to_char(sysdate,'D'))) startdayofweek, to_char(sysdate+ (7-to_char(sysdate,'D'))) endofweek from dual