테스트 사이트 - 개발 중인 베타 버전입니다

금주 날짜 구하기

그누보드일경우

$day_of_week = date('w'); 

$week_mon = date('Y-m-d', strtotime(G5_TIME_YMD." -".($day_of_week - 1)."days")); // 시작일

$week_sun = date('Y-m-d', strtotime(G5_TIME_YMD." +".(6 - $day_of_week)."days")); // 종료일

 

그누보드가 아닐경우

$date = date('Y-m-d', time());

$day_of_week = date('w');

$week_mon = date('Y-m-d', strtotime($date​." -".($day_of_week - 1)."days")); // 시작일

$week_sun = date('Y-m-d', strtotime($date​." +".(6 - $day_of_week)."days")); // 종료일

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 1개

게시판 목록

개발자팁

개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.
글쓰기
🐛 버그신고