:REGDATE - 20160117
SELECT :REGDATE,
TO_CHAR( TO_DATE(:REGDATE,'YYYYMMDD') ,'YYYY-IW') AS YW
, TO_CHAR( TO_DATE(:REGDATE,'YYYYMMDD') +( 1 - TO_CHAR(TO_DATE(:REGDATE,'YYYYMMDD') - 1, 'D') ), 'YYYY-MM-DD') AS START_DATE
, TO_CHAR( TO_DATE(:REGDATE,'YYYYMMDD') +( 1 + 6 - TO_CHAR(TO_DATE(:REGDATE,'YYYYMMDD') - 1, 'D') ), 'YYYY-MM-DD') AS END_DATE
FROM DUAL
SELECT
TO_CHAR(SYSDATE,'YYYY') AS year /*년도*/
, TO_CHAR(SYSDATE,'WW') AS week_seq /*주차*/
, TO_CHAR(trunc(SYSDATE,'D'),'YYYY/MM/DD') AS start_date /*시작일*/
, TO_CHAR(trunc(SYSDATE,'D')+6,'YYYY/MM/DD') AS end_date /*종료일*/
FROM DUAL
TO_CHAR(SYSDATE,'YYYY') AS year /*년도*/
, TO_CHAR(SYSDATE,'WW') AS week_seq /*주차*/
, TO_CHAR(trunc(SYSDATE,'D'),'YYYY/MM/DD') AS start_date /*시작일*/
, TO_CHAR(trunc(SYSDATE,'D')+6,'YYYY/MM/DD') AS end_date /*종료일*/
FROM DUAL
[출처] [오라클]현재날짜의 년도/주차/시작일/종료일|작성자 능력자엄군
window.open 팝업창 중앙에 보이기
window.open(
팝업url,
"팝업창이름",
"width="+w+",height="+h+",top="+TopPosition+",left="+LeftPosition+", scrollbars=no");
var w = 880; [출처] window.open 팝업창 중앙에 보이기|작성자 SSEOL
|